148 int* major,
int* minor)
const;
238 gap.xcoord =
xcoord - pt.xcoord;
239 gap.ycoord =
ycoord - pt.ycoord;
254 uint8_t to_direction()
const;
261 static uint8_t binary_angle_plus_pi(
double angle);
264 static double angle_from_direction(uint8_t
direction);
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);
float angle() const
find angle
FCOORD()
empty constructor
BOOL8 operator==(const ICOORD &other) const
test equality
void set_x(float xin)
rewrite function
void set_y(int16_t yin)
rewrite function
void set_y(float yin)
rewrite function
void setup_render(ICOORD *major_step, ICOORD *minor_step, int *major, int *minor) const
int16_t y() const
access_function
void rotate(const FCOORD &vec)
float length() const
find length
float angle() const
find angle
friend int32_t operator*(const ICOORD &, const ICOORD &)
cross product
float sqlength() const
find sq length
int16_t x() const
access function
friend ICOORD operator+(const ICOORD &, const ICOORD &)
add
int direction(EDGEPT *point)
friend ICOORD & operator/=(ICOORD &, int16_t)
divide
float length() const
find length
friend ICOORD operator/(const ICOORD &, int16_t)
divide
ICOORDELT()
empty constructor
ICOORD(int16_t xin, int16_t yin)
float pt_to_pt_dist(const ICOORD &pt) const
Distance between pts.
FCOORD(float xvalue, float yvalue)
friend ICOORD operator!(const ICOORD &)
rotate 90 deg anti
ICOORDELT(ICOORD icoord)
constructor from ICOORD
BOOL8 operator!=(const ICOORD &other) const
test inequality
friend ICOORD & operator*=(ICOORD &, int16_t)
multiply
bool DeSerialize(bool swap, FILE *fp)
ICOORDELT(int16_t xin, int16_t yin)
#define ELISTIZEH(CLASSNAME)
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.
friend ICOORD operator-(const ICOORD &)
unary minus
float sqlength() const
find sq length
friend int32_t operator%(const ICOORD &, const ICOORD &)
scalar product
void set_x(int16_t xin)
rewrite function
float pt_to_pt_sqdist(const FCOORD &pt) const
sq dist between pts
friend ICOORD & operator-=(ICOORD &, const ICOORD &)
subtract
bool Serialize(FILE *fp) const
friend ICOORD & operator+=(ICOORD &, const ICOORD &)
add
ICOORD()
empty constructor
float pt_to_pt_sqdist(const ICOORD &pt) const
sq dist between pts
float pt_to_pt_dist(const FCOORD &pt) const
Distance between pts.