|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.geom.Shape
org.newdawn.slick.geom.Point
public class Point
A single point shape
| Field Summary |
|---|
| Fields inherited from class org.newdawn.slick.geom.Shape |
|---|
boundingCircleRadius, center, maxX, maxY, minX, minY, points, pointsDirty, trianglesDirty, tris, x, y |
| Constructor Summary | |
|---|---|
Point(float x,
float y)
Create a new point |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.newdawn.slick.geom.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Point(float x,
float y)
x - The x coordinate of the pointy - The y coordinate of the point| Method Detail |
|---|
public Shape transform(Transform transform)
Shape
transform in class Shapetransform - The transform to be applied
Shape.transform(org.newdawn.slick.geom.Transform)protected void createPoints()
Shape
createPoints in class ShapeShape.createPoints()protected void findCenter()
Shape
findCenter in class ShapeShape.findCenter()protected void calculateRadius()
Shape
calculateRadius in class ShapeShape.calculateRadius()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||