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