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, union
public Point(float x, float y)
x
- The x coordinate of the pointy
- The y coordinate of the pointpublic Shape transform(Transform transform)
Shape
protected void createPoints()
Shape
createPoints
in class Shape
protected void findCenter()
Shape
findCenter
in class Shape
protected void calculateRadius()
Shape
calculateRadius
in class Shape