| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the specific subclass implementing this interfacepublic interface PolygonPrimitive<T extends PolygonPrimitive<?>>
Base polygon class for 2D shapes
| Method Summary | |
|---|---|
|  boolean | contains(Coord2D coord2d)Determines if the polygon contains that point | 
|  boolean | contains(double x,
         double y)Determines if the polygon contains that point | 
|  Coord2D | getCenter() | 
|  Coord2D[] | intersection(LineSeg2D lsSeg2d)Finds the intersection points for the polygon with the line segment | 
|  boolean | intersects(LineSeg2D lSeg2d)Determines if the polygon intersects the line segment | 
|  boolean | intersects(PolygonPrimitive<?> polygon)Determines if the polygon intersects a polygon | 
|  boolean | intersectsCircle(Circle circle)Determines if the polygon intersects a circle | 
|  boolean | intersectsPoly(Polygon polygon)Determines if the polygon intersects a polygon | 
|  boolean | intersectsRect(Rectangle rectangle)Determines if the polygon intersects a rectangle | 
|  T | scale(double sizeScalar)WRITEME: Document this method brpocock@star-hope.org | 
|  T | translate(Coord2D coord2d)WRITEME: Document this method brpocock@star-hope.org | 
|  T | translate(double x,
          double y)Translates the object | 
| Method Detail | 
|---|
boolean contains(Coord2D coord2d)
coord2d - WRITEME
boolean contains(double x,
                 double y)
x - WRITEMEy - WRITEME
Coord2D getCenter()
Coord2D[] intersection(LineSeg2D lsSeg2d)
lsSeg2d - WRITEME
boolean intersects(LineSeg2D lSeg2d)
lSeg2d - WRITEME
boolean intersects(PolygonPrimitive<?> polygon)
polygon - WRITEME
boolean intersectsCircle(Circle circle)
circle - WRITEME
boolean intersectsPoly(Polygon polygon)
polygon - WRITEME
boolean intersectsRect(Rectangle rectangle)
rectangle - WRITEME
T scale(double sizeScalar)
sizeScalar - WRITEME
T translate(Coord2D coord2d)
coord2d - The amount to move
T translate(double x,
            double y)
x - The amount to move on the x-axisy - The amount to move on the y-axis
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||