149 int* major,
int* minor)
const;
253 uint8_t to_direction()
const;
255 void from_direction(uint8_t direction);
260 static uint8_t binary_angle_plus_pi(
double angle);
263 static double angle_from_direction(uint8_t direction);
269 const FCOORD& dir_vector)
const;
312 void unrotate(
const FCOORD &vec);
541 tmp = (int16_t) floor (
xcoord * vec.
x () -
ycoord * vec.
y () + 0.5);
734 ASSERT_HOST(scale != 0.0f);
751 ASSERT_HOST(scale != 0.0f);
ICOORD()
empty constructor
Definition: points.h:38
float sqlength() const
find sq length
Definition: points.h:224
void setup_render(ICOORD *major_step, ICOORD *minor_step, int *major, int *minor) const
Definition: points.cpp:85
FCOORD(float xvalue, float yvalue)
Definition: points.h:197
float length() const
find length
Definition: points.h:79
void set_with_shrink(int x, int y)
Set from the given x,y, shrinking the vector to fit if needed.
Definition: points.cpp:43
friend ICOORD & operator+=(ICOORD &, const ICOORD &)
add
Definition: points.h:382
void set_x(int16_t xin)
rewrite function
Definition: points.h:62
int16_t xcoord
Definition: points.h:158
int16_t x() const
access function
Definition: points.h:53
float y() const
Definition: points.h:211
float length() const
find length
Definition: points.h:229
float pt_to_pt_sqdist(const FCOORD &pt) const
sq dist between pts
Definition: points.h:234
friend ICOORD & operator/=(ICOORD &, int16_t)
divide
Definition: points.h:522
friend ICOORD & operator*=(ICOORD &, int16_t)
multiply
Definition: points.h:488
void unrotate(const FCOORD &vec)
Definition: points.h:773
float ycoord
Definition: points.h:318
void set_x(float xin)
rewrite function
Definition: points.h:215
friend class FCOORD
Definition: points.h:34
ICOORD(int16_t xin, int16_t yin)
Definition: points.h:44
float pt_to_pt_dist(const FCOORD &pt) const
Distance between pts.
Definition: points.h:243
void rotate(const FCOORD &vec)
Definition: points.h:537
bool operator==(const ICOORD &other) const
test equality
Definition: points.h:103
static ICOORDELT * deep_copy(const ICOORDELT *src)
Definition: points.h:180
float x() const
Definition: points.h:208
ICOORDELT(ICOORD icoord)
constructor from ICOORD
Definition: points.h:169
friend ICOORD operator!(const ICOORD &)
rotate 90 deg anti
Definition: points.h:328
void set_y(float yin)
rewrite function
Definition: points.h:219
int16_t y() const
access_function
Definition: points.h:57
float angle() const
find angle
Definition: points.h:98
float sqlength() const
find sq length
Definition: points.h:74
float angle() const
find angle
Definition: points.h:248
friend ICOORD & operator-=(ICOORD &, const ICOORD &)
subtract
Definition: points.h:416
void set_y(int16_t yin)
rewrite function
Definition: points.h:66
integer coordinate
Definition: points.h:32
int16_t ycoord
Definition: points.h:159
float pt_to_pt_dist(const ICOORD &pt) const
Distance between pts.
Definition: points.h:93
ICOORDELT(int16_t xin, int16_t yin)
Definition: points.h:174
friend ICOORD operator+(const ICOORD &, const ICOORD &)
add
Definition: points.h:364
void rotate(const FCOORD vec)
Definition: points.h:764
friend int32_t operator%(const ICOORD &, const ICOORD &)
scalar product
Definition: points.h:432
~ICOORD()=default
destructor
bool Serialize(FILE *fp) const
Definition: points.cpp:63
bool DeSerialize(bool swap, FILE *fp)
Definition: points.cpp:69
float xcoord
Definition: points.h:317
bool operator!=(const ICOORD &other) const
test inequality
Definition: points.h:107
friend ICOORD operator-(const ICOORD &)
unary minus
Definition: points.h:346
FCOORD(ICOORD icoord)
Definition: points.h:202
float pt_to_pt_sqdist(const ICOORD &pt) const
sq dist between pts
Definition: points.h:84
friend int32_t operator*(const ICOORD &, const ICOORD &)
cross product
Definition: points.h:445
friend ICOORD operator/(const ICOORD &, int16_t)
divide
Definition: points.h:504