Class Intersector
- java.lang.Object
-
- WildMagic.LibFoundation.Intersection.Intersector
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
IntrBox3Box3f,IntrLine2Triangle2f,IntrLine3Box3f,IntrLine3Plane3f,IntrLine3Sphere3f,IntrLine3Triangle3f,IntrPlane3Box3f,IntrPlane3Plane3f,IntrRay3Box3f,IntrRay3Sphere3f,IntrSegment2Triangle2f,IntrSegment3Box3f,IntrSegment3Plane3f,IntrSegment3Sphere3f,IntrSegment3Triangle3f,IntrSphere3Sphere3f,IntrTriangle2Triangle2f,IntrTriangle3Cone3f,IntrTriangle3Triangle3f
public abstract class Intersector extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIntersector.IntersectionInfoinformation about the intersection set
-
Field Summary
Fields Modifier and Type Field Description protected floatm_fContactTimeContact timeprotected Intersector.IntersectionInfom_iIntersectionTypeIntersection typeprivate static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protectedIntersector()Creates a default Intersector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanFind()Static intersection queries.floatGetContactTime()The time at which two objects are in first contact for the dynamic intersection queries.Intersector.IntersectionInfoGetIntersectionType()Returns the intersection typebooleanTest()Static intersection queries.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
m_fContactTime
protected float m_fContactTime
Contact time
-
m_iIntersectionType
protected Intersector.IntersectionInfo m_iIntersectionType
Intersection type
-
-
Method Detail
-
Find
public boolean Find()
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.- Returns:
- false
-
GetContactTime
public final float GetContactTime()
The time at which two objects are in first contact for the dynamic intersection queries.- Returns:
- first contact time.
-
GetIntersectionType
public final Intersector.IntersectionInfo GetIntersectionType()
Returns the intersection type- Returns:
- IntersectionInfo intersection type
-
Test
public boolean Test()
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.- Returns:
- false
-
-