Class dnx.geom.Point2Set
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.geom.Point2Set
java.lang.Object
|
+----dnx.geom.Point2Set
- public class Point2Set
- extends Object
This implements a set of points in two dimensions. It is the
parent class for polygons, planar graphs, and such.
-
bounding_rect
-
-
cached_bounds_valid
-
-
Point2Set()
-
-
Point2Set(Point2Set)
-
-
addPoint(double, double)
-
-
addPoint(float, float)
-
-
addPoint(Point2)
- add a point to a polygon.
-
clone()
-
-
copy(Point2Set)
-
-
deletePoint(int)
-
-
deletePoints(int, int)
-
-
getBoundingBox()
- Return the bounding rectangle of the polygon.
-
getPoints()
-
-
indexOfPointEql(Point2)
-
-
indexOfPointEqual(Point2)
-
-
invalidateCaches()
-
-
numberOfPoints()
-
-
reflectX()
- Reflect along the X axis.
-
reflectXY()
- Reflect along the line X = Y.
-
reflectY()
- Reflect along the Y axis.
-
scale(float)
-
-
scale(float, float)
-
-
translate(float, float)
-
cached_bounds_valid
protected boolean cached_bounds_valid
bounding_rect
protected Rectangle2 bounding_rect
Point2Set
public Point2Set()
Point2Set
public Point2Set(Point2Set set)
copy
public void copy(Point2Set set)
clone
public Object clone()
- Overrides:
- clone in class Object
invalidateCaches
protected void invalidateCaches()
indexOfPointEql
public int indexOfPointEql(Point2 p)
indexOfPointEqual
public int indexOfPointEqual(Point2 p)
numberOfPoints
public final int numberOfPoints()
getPoints
public Enumeration getPoints()
getBoundingBox
public Rectangle2 getBoundingBox()
- Return the bounding rectangle of the polygon. This specifies
the minimum and maximum X and Y coordinates for the polygon.
addPoint
public int addPoint(Point2 p)
- add a point to a polygon.
This does NOT copy the point; if the point is mutable, make sure
to clone it first! Oh for a const keyword in Java ...
addPoint
public int addPoint(float x,
float y)
addPoint
public int addPoint(double x,
double y)
deletePoint
public void deletePoint(int ind)
deletePoints
public void deletePoints(int ind,
int count)
translate
public void translate(float x,
float y)
scale
public void scale(float xscale,
float yscale)
scale
public void scale(float scale)
reflectX
public void reflectX()
- Reflect along the X axis.
reflectY
public void reflectY()
- Reflect along the Y axis.
reflectXY
public void reflectXY()
- Reflect along the line X = Y.
All Packages Class Hierarchy This Package Previous Next Index