All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
polyblk.cpp File Reference
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include "elst.h"
#include "polyblk.h"

Go to the source code of this file.

Macros

#define PBLOCK_LABEL_SIZE   150
 
#define INTERSECTING   MAX_INT16
 

Functions

POLY_BLOCK::reflect_in_y_axis

Reflect the coords of the polygon in the y-axis. (Flip the sign of x.)

int lessthan (const void *first, const void *second)
 

Macro Definition Documentation

#define INTERSECTING   MAX_INT16

Definition at line 32 of file polyblk.cpp.

#define PBLOCK_LABEL_SIZE   150

Definition at line 31 of file polyblk.cpp.

Function Documentation

int lessthan ( const void *  first,
const void *  second 
)

Definition at line 381 of file polyblk.cpp.

381  {
382  ICOORDELT *p1 = (*(ICOORDELT **) first);
383  ICOORDELT *p2 = (*(ICOORDELT **) second);
384 
385  if (p1->x () < p2->x ())
386  return (-1);
387  else if (p1->x () > p2->x ())
388  return (1);
389  else
390  return (0);
391 }
inT16 x() const
access function
Definition: points.h:52