29 float len = length ();
31 if (len < 0.0000000001) {
43 int max_extent =
MAX(abs(x), abs(y));
52 static int sign(
int x) {
61 if (fwrite(&
xcoord,
sizeof(
xcoord), 1, fp) != 1)
return false;
62 if (fwrite(&
ycoord,
sizeof(
ycoord), 1, fp) != 1)
return false;
68 if (fread(&
xcoord,
sizeof(
xcoord), 1, fp) != 1)
return false;
69 if (fread(&
ycoord,
sizeof(
ycoord), 1, fp) != 1)
return false;
84 int* major,
int* minor)
const {
void ReverseN(void *ptr, int num_bytes)
bool DeSerialize(bool swap, FILE *fp)
void setup_render(ICOORD *major_step, ICOORD *minor_step, int *major, int *minor) const
ELISTIZE(ICOORDELT) bool FCOORD
bool Serialize(FILE *fp) const
void set_with_shrink(int x, int y)
Set from the given x,y, shrinking the vector to fit if needed.