Modifier and Type | Field and Description |
---|---|
Point2DFloat |
Point2DFloatList.CentroidAndArea.centroid
The centroid of the polygon.
|
Modifier and Type | Field and Description |
---|---|
java.util.Vector<Point2DFloat> |
Point2DFloatList.points
The vector of points
|
Modifier and Type | Method and Description |
---|---|
Point2DFloat |
Point2DFloatList.getCentroid()
Calculates the centroid (if necessary) and returns it.
|
Point2DFloat |
Point2DFloatList.getPoint(int index)
Gets the specified point.
|
Point2DFloat |
Point2DFloat.rotateAround(float cx,
float cy,
double theta)
Rotates this point around another point (cx, cy) with angle theta.
|
static Point2DFloat |
Point2DFloat.rotateAround(float x,
float y,
float cx,
float cy,
double theta)
Rotates a point (x,y) around another point (cx, cy) with angle theta
(specified in radians).
|
Point2DFloat |
Point2DFloat.rotateAround(Point2DFloat center,
double theta)
Rotates this point around another point (cx, cy) with angle theta.
|
Point2DFloat |
Point2DFloat.scaleAround(float cx,
float cy,
float scale)
Scales this point around another point (cx, cy) with scale factor
scale.
|
static Point2DFloat |
Point2DFloat.scaleAround(float x,
float y,
float cx,
float cy,
float scale)
Scales a point (x,y) around another point (cx, cy) with scale factor
scale.
|
Point2DFloat |
Point2DFloat.scaleAround(Point2DFloat center,
float scale)
Scales this point around another point (cx, cy) with scale factor
scale.
|
Modifier and Type | Method and Description |
---|---|
void |
Point2DFloatList.addPoint(Point2DFloat point)
Adds a point to this shape.
|
void |
BoundingBox2DFloat.addPoint(Point2DFloat p)
Add a point to a BoundingBox.
|
Point2DFloat |
Point2DFloat.rotateAround(Point2DFloat center,
double theta)
Rotates this point around another point (cx, cy) with angle theta.
|
Point2DFloat |
Point2DFloat.scaleAround(Point2DFloat center,
float scale)
Scales this point around another point (cx, cy) with scale factor
scale.
|
Constructor and Description |
---|
BoundingBox2DFloat(Point2DFloat p)
Construct a zero-sized BoundingBox around a single point.
|
BoundingBox2DFloat(Point2DFloat p1,
Point2DFloat p2)
Construct a BoundingBox with the specified coordinates.
|