public class Point extends Shape
boundingCircleRadius, center, maxX, maxY, minX, minY, points, pointsDirty, trianglesDirty, tris, x, y| Constructor and Description |
|---|
Point(float x,
float y)
Create a new point
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculateRadius()
Calculate the radius of a circle that can completely enclose this shape.
|
protected void |
createPoints()
Subclasses implement this to create the points of the shape.
|
protected void |
findCenter()
Get the center of this polygon.
|
Shape |
transform(Transform transform)
Apply a transformation and return a new shape.
|
calculateTriangles, checkPoints, closed, contains, contains, getBoundingCircleRadius, getCenter, getCenterX, getCenterY, getHeight, getLocation, getMaxX, getMaxY, getMinX, getMinY, getNormal, getPoint, getPointCount, getPoints, getTriangles, getWidth, getX, getY, hasVertex, includes, increaseTriangulation, indexOf, intersects, preCache, prune, setCenterX, setCenterY, setLocation, setLocation, setX, setY, subtract, unionpublic Point(float x,
float y)
x - The x coordinate of the pointy - The y coordinate of the pointpublic Shape transform(Transform transform)
Shapeprotected void createPoints()
ShapecreatePoints in class Shapeprotected void findCenter()
ShapefindCenter in class Shapeprotected void calculateRadius()
ShapecalculateRadius in class Shape