Class IntrTriangle3Triangle3f
- java.lang.Object
-
- WildMagic.LibFoundation.Intersection.Intersector
-
- WildMagic.LibFoundation.Intersection.IntrTriangle3Triangle3f
-
- All Implemented Interfaces:
java.io.Serializable
public class IntrTriangle3Triangle3f 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 int
m_iQuantity
private Vector3f[]
m_kPoint
private static long
serialVersionUID
Triangle3f
Triangle0
Triangle3f
Triangle1
-
Fields inherited from class WildMagic.LibFoundation.Intersection.Intersector
m_fContactTime, m_iIntersectionType
-
-
Constructor Summary
Constructors Constructor Description IntrTriangle3Triangle3f()
IntrTriangle3Triangle3f(Triangle3f triangle0, Triangle3f triangle1)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
ContainsPoint(Triangle3f triangle, Plane3f plane, Vector3f point)
boolean
Find()
Static intersection queries.private boolean
GetCoplanarIntersection(Plane3f plane, Triangle3f tri0, Triangle3f tri1)
void
GetInterval(Triangle3f triangle, Line3f line, float[] distance, int[] sign, float[] param)
Vector3f
GetPoint(int i)
int
GetQuantity()
Triangle3f
GetTriangle0()
Triangle3f
GetTriangle1()
private boolean
IntersectsSegment(Plane3f plane, Triangle3f triangle, Vector3f end0, Vector3f end1)
private void
ProjectOntoAxis(Triangle3f triangle, Vector3f axis, float[] fmin, float[] fmax)
boolean
Test()
Static intersection queries.private void
TrianglePlaneRelations(Triangle3f triangle, Plane3f plane, float[] distance, int[] sign, int[] positive, int[] negative, int[] zero)
-
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 Triangle3f Triangle0
-
Triangle1
public Triangle3f Triangle1
-
m_iQuantity
private int m_iQuantity
-
m_kPoint
private Vector3f[] m_kPoint
-
-
Constructor Detail
-
IntrTriangle3Triangle3f
public IntrTriangle3Triangle3f()
-
IntrTriangle3Triangle3f
public IntrTriangle3Triangle3f(Triangle3f triangle0, Triangle3f triangle1)
-
-
Method Detail
-
GetTriangle0
public Triangle3f GetTriangle0()
-
GetTriangle1
public Triangle3f GetTriangle1()
-
Test
public boolean Test()
Description copied from class:Intersector
Static 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:
Test
in classIntersector
- Returns:
- false
-
Find
public boolean Find()
Description copied from class:Intersector
Static 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:
Find
in classIntersector
- Returns:
- false
-
GetQuantity
public int GetQuantity()
-
GetPoint
public Vector3f GetPoint(int i)
-
ProjectOntoAxis
private void ProjectOntoAxis(Triangle3f triangle, Vector3f axis, float[] fmin, float[] fmax)
-
TrianglePlaneRelations
private void TrianglePlaneRelations(Triangle3f triangle, Plane3f plane, float[] distance, int[] sign, int[] positive, int[] negative, int[] zero)
-
GetInterval
public void GetInterval(Triangle3f triangle, Line3f line, float[] distance, int[] sign, float[] param)
-
ContainsPoint
private boolean ContainsPoint(Triangle3f triangle, Plane3f plane, Vector3f point)
-
IntersectsSegment
private boolean IntersectsSegment(Plane3f plane, Triangle3f triangle, Vector3f end0, Vector3f end1)
-
GetCoplanarIntersection
private boolean GetCoplanarIntersection(Plane3f plane, Triangle3f tri0, Triangle3f tri1)
-
-