|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Shape
Interface representing a geometric shape. Note that the shape only stores the outline of a geometric object, but not its position or angular position.
Method Summary | |
---|---|
java.awt.image.BufferedImage |
createBufferedImage(double angularPosition)
Creates a BufferedImage representing the given
Shape . |
BoundingBox |
getBoundingBox()
Returns the bounding box of a shape. |
Vector2f |
getCentroid()
|
double |
getR2IntegralEstimate()
Obtain an estimate of the integral of R^2 over the whole shape, where R is the distance between each point and the centroid. |
Vector2f |
getSmallestCorner()
|
Method Detail |
---|
BoundingBox getBoundingBox()
java.awt.image.BufferedImage createBufferedImage(double angularPosition)
BufferedImage
representing the given
Shape
. This image will have the same bounding box as the
given shape. The image will have black outline and white interior. This
is mostly for simple games and internal testing.
double getR2IntegralEstimate()
Vector2f getCentroid()
Vector2f getSmallestCorner()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |