Class IntrTriangle2Triangle2f
- java.lang.Object
-
- WildMagic.LibFoundation.Intersection.Intersector
-
- WildMagic.LibFoundation.Intersection.IntrTriangle2Triangle2f
-
- All Implemented Interfaces:
java.io.Serializable
public class IntrTriangle2Triangle2f extends Intersector implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class WildMagic.LibFoundation.Intersection.Intersector
Intersector.IntersectionInfo
-
-
Field Summary
Fields Modifier and Type Field Description private intm_iQuantityprivate Vector2f[]m_kPointprivate static longserialVersionUIDTriangle2fTriangle0Triangle2fTriangle1-
Fields inherited from class WildMagic.LibFoundation.Intersection.Intersector
m_fContactTime, m_iIntersectionType
-
-
Constructor Summary
Constructors Constructor Description IntrTriangle2Triangle2f()IntrTriangle2Triangle2f(Triangle2f triangle0, Triangle2f triangle1)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidClipConvexPolygonAgainstLine(Vector2f N, float c, int[] quantity, Vector2f[] V)private static floatDet2(float x0, float y0, float x1, float y1)booleanFind()Static intersection queries.Vector2fGetPoint(int i)intGetQuantity()Triangle2fGetTriangle0()Triangle2fGetTriangle1()private static booleanSort(int[] v0, int[] v1)booleanTest()Static intersection queries.static intToLine(Vector2f[] vertices, Vector2f test, int v0, int v1)static intToTriangle(Vector2f[] vertices, Vector2f test, int v0, int v1, int v2)private intWhichSide(Vector2f[] V, Vector2f P, Vector2f D)-
Methods inherited from class WildMagic.LibFoundation.Intersection.Intersector
GetContactTime, GetIntersectionType
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
Triangle0
public Triangle2f Triangle0
-
Triangle1
public Triangle2f Triangle1
-
m_iQuantity
private int m_iQuantity
-
m_kPoint
private Vector2f[] m_kPoint
-
-
Constructor Detail
-
IntrTriangle2Triangle2f
public IntrTriangle2Triangle2f()
-
IntrTriangle2Triangle2f
public IntrTriangle2Triangle2f(Triangle2f triangle0, Triangle2f triangle1)
-
-
Method Detail
-
GetTriangle0
public Triangle2f GetTriangle0()
-
GetTriangle1
public Triangle2f GetTriangle1()
-
Test
public boolean Test()
Description copied from class:IntersectorStatic intersection queries. The default implementations return 'false'. The Find query produces a set of intersection. The derived class is responsible for providing access to that set, since the nature of the set is dependent on the object types.- Overrides:
Testin classIntersector- Returns:
- false
-
Find
public boolean Find()
Description copied from class:IntersectorStatic intersection queries. The default implementations return 'false'. The Find query produces a set of intersection. The derived class is responsible for providing access to that set, since the nature of the set is dependent on the object types.- Overrides:
Findin classIntersector- Returns:
- false
-
ClipConvexPolygonAgainstLine
private void ClipConvexPolygonAgainstLine(Vector2f N, float c, int[] quantity, Vector2f[] V)
-
GetQuantity
public int GetQuantity()
-
GetPoint
public Vector2f GetPoint(int i)
-
ToTriangle
public static int ToTriangle(Vector2f[] vertices, Vector2f test, int v0, int v1, int v2)
-
Det2
private static float Det2(float x0, float y0, float x1, float y1)
-
Sort
private static boolean Sort(int[] v0, int[] v1)
-
-