|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.eside.flingbox.math.Intersect
public class Intersect
Handles functions to compute and storage intersections between two traces.
Field Summary | |
---|---|
Vector2D[] |
contourA
Stores array with intersect contour of first polygon |
Vector2D[] |
contourB
Stores array with intersect contour of second polygon |
Vector2D |
ingoingPoint
Ingoing point, it's also in contour[0] |
Vector2D |
outgoingPoint
Outgoing point, also in contour |
Vector2D[] |
polygonA
Just pointer to recognize polygon side |
Vector2D[] |
polygonB
Just pointer to recognize polygon side |
Method Summary | |
---|---|
float |
getIntersectionDepth()
Computes intersection penetration. |
static Intersect[] |
intersectPolygons(Vector2D[] polygonA,
Vector2D[] polygonB)
Computes all intersects between two polygons |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Vector2D[] polygonA
public final Vector2D[] polygonB
public final Vector2D[] contourA
public final Vector2D[] contourB
public final Vector2D ingoingPoint
public final Vector2D outgoingPoint
Method Detail |
---|
public static Intersect[] intersectPolygons(Vector2D[] polygonA, Vector2D[] polygonB)
polygonA
- first polygonpolygonB
- second polygon
public float getIntersectionDepth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |