|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.physicsEngine.geometry.shapes.ShapeUtilities
public class ShapeUtilities
Constructor Summary | |
---|---|
ShapeUtilities()
|
Method Summary | |
---|---|
static java.util.List<Vector2f> |
getBoundaryPoints(java.awt.Shape shape)
Obtain the boundary points of a given java.awt.Shape object. |
static java.util.List<Vector2f> |
getBoundaryPoints(java.awt.Shape shape,
double flatness)
Given an Area object (probably as the result of an intersection), obtain the extremal points on the boundary. |
static java.awt.geom.Area |
getIntersectingArea(java.awt.geom.Area areaA,
java.awt.geom.Area areaB)
Obtain the Area object corresponding to the intersection of
areaA and areaB. |
static java.awt.geom.Area |
getTransformedArea(java.awt.geom.Area area,
double x,
double y,
double angularPosition)
Apply the given translation and rotation to the given area. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShapeUtilities()
Method Detail |
---|
public static java.util.List<Vector2f> getBoundaryPoints(java.awt.Shape shape, double flatness)
shape
- a given Java.awt.Area
object.
public static java.util.List<Vector2f> getBoundaryPoints(java.awt.Shape shape)
java.awt.Shape
object.
Using a very high flatness to reduce number of points.
shape
-
public static java.awt.geom.Area getTransformedArea(java.awt.geom.Area area, double x, double y, double angularPosition)
x
- x-coodinate of translationy
- y-coodinate of translationangularPosition
- magnitude of rotation
public static java.awt.geom.Area getIntersectingArea(java.awt.geom.Area areaA, java.awt.geom.Area areaB)
Area
object corresponding to the intersection of
areaA and areaB.
areaA
- areaB
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |