4 point polygon in 2D system More...

Public Member Functions | |
| Quad () | |
| Quad (Quad q) | |
| Quad (Rect r) | |
| Quad (RotatedRect r) | |
| Quad (Point p1, Point p2, Point p3, Point p4) | |
| Quad (Point[] p) | |
| Point | centerPoint () |
| boolean | contains (Point p) |
| boolean | equals (Quad q2) |
| Rect | getBounds () |
| moveDown (number delta) | |
| moveLeft (number delta) | |
| moveRight (number delta) | |
| moveUp (number delta) | |
| boolean | notEquals (Quad q2) |
| rotate (number rotationRadians, Offset centerPtOffset=Point(0, 0)) | |
Public Attributes | |
| Point[] | points |
4 point polygon in 2D system
Quad is a class that provides support for dealing with 4 point ploygons in 2 dimensional space The PDG coordinate space starts with the top left corner of the drawing port at Point(0,0) and the bottom left corner at Point( width, height );
| Quad | ( | ) |
| Quad | ( | RotatedRect | r | ) |
| Point centerPoint | ( | ) |
| boolean contains | ( | Point | p | ) |
| boolean equals | ( | Quad | q2 | ) |
| Rect getBounds | ( | ) |
| moveDown | ( | number | delta | ) |
| moveLeft | ( | number | delta | ) |
| moveRight | ( | number | delta | ) |
| moveUp | ( | number | delta | ) |
| boolean notEquals | ( | Quad | q2 | ) |
| Point [] points |
and a whole mess of custom scripts.