148 int* major,
int* minor)
const;
238 gap.xcoord =
xcoord - pt.xcoord;
239 gap.ycoord =
ycoord - pt.ycoord;
254 uinT8 to_direction()
const;
261 static uinT8 binary_angle_plus_pi(
double angle);
270 const FCOORD& dir_vector)
const;
277 return xcoord == other.xcoord &&
ycoord == other.ycoord;
281 return xcoord != other.xcoord ||
ycoord != other.ycoord;
313 void unrotate(
const FCOORD &vec);
FCOORD()
empty constructor
static ICOORDELT * deep_copy(const ICOORDELT *src)
BOOL8 operator==(const ICOORD &other) const
test equality
float pt_to_pt_dist(const FCOORD &pt) const
Distance between pts.
ICOORDELT()
empty constructor
FCOORD(float xvalue, float yvalue)
bool DeSerialize(bool swap, FILE *fp)
float angle() const
find angle
void rotate(const FCOORD &vec)
float sqlength() const
find sq length
friend ICOORD & operator-=(ICOORD &, const ICOORD &)
subtract
friend ICOORD operator/(const ICOORD &, inT16)
divide
float sqlength() const
find sq length
ICOORD()
empty constructor
void set_with_shrink(int x, int y)
Set from the given x,y, shrinking the vector to fit if needed.
#define ELISTIZEH(CLASSNAME)
void set_x(inT16 xin)
rewrite function
ICOORDELT(ICOORD icoord)
constructor from ICOORD
BOOL8 operator!=(const ICOORD &other) const
test inequality
float pt_to_pt_sqdist(const ICOORD &pt) const
sq dist between pts
void set_y(inT16 yin)
rewrite function
float angle() const
find angle
void setup_render(ICOORD *major_step, ICOORD *minor_step, int *major, int *minor) const
int direction(EDGEPT *point)
inT16 x() const
access function
friend ICOORD & operator*=(ICOORD &, inT16)
multiply
friend ICOORD operator!(const ICOORD &)
rotate 90 deg anti
ICOORD(inT16 xin, inT16 yin)
float pt_to_pt_dist(const ICOORD &pt) const
Distance between pts.
friend inT32 operator%(const ICOORD &, const ICOORD &)
scalar product
friend ICOORD & operator+=(ICOORD &, const ICOORD &)
add
friend ICOORD & operator/=(ICOORD &, inT16)
divide
ICOORDELT(inT16 xin, inT16 yin)
float pt_to_pt_sqdist(const FCOORD &pt) const
sq dist between pts
void set_y(float yin)
rewrite function
float length() const
find length
friend inT32 operator*(const ICOORD &, const ICOORD &)
cross product
bool Serialize(FILE *fp) const
inT16 y() const
access_function
friend ICOORD operator-(const ICOORD &)
unary minus
void set_x(float xin)
rewrite function
float length() const
find length
friend ICOORD operator+(const ICOORD &, const ICOORD &)
add