Class IntrSegment3Sphere3f
- java.lang.Object
-
- WildMagic.LibFoundation.Intersection.Intersector
-
- WildMagic.LibFoundation.Intersection.IntrSegment3Sphere3f
-
- All Implemented Interfaces:
java.io.Serializable
public class IntrSegment3Sphere3f 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 float[]m_afSegmentTinformation about the intersection set: line equation T-values of intersectionsprivate Vector3f[]m_akPointinformation about the intersection set: intersection pointsprivate intm_iQuantityinformation about the intersection set: number of intersectionsprivate Segment3fm_rkSegmentthe objects to intersect: Segmentprivate Sphere3fm_rkSpherethe objects to intersect: Sphereprivate static longserialVersionUIDfloatZeroThresholddefault = Mathf::ZERO_TOLERANCE-
Fields inherited from class WildMagic.LibFoundation.Intersection.Intersector
m_fContactTime, m_iIntersectionType
-
-
Constructor Summary
Constructors Constructor Description IntrSegment3Sphere3f(Segment3f rkSegment, Sphere3f rkSphere)Creates an IntrSegment3Sphere3f object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()delete memorybooleanFind()find-intersection queryVector3fGetPoint(int i)Returns the ith intersection pointintGetQuantity()Returns the number of intersectionsSegment3fGetSegment()object accessfloatGetSegmentT(int i)Returns the ith intersection point segment parameter tSphere3fGetSphere()object accessbooleanTest()test-intersection query-
Methods inherited from class WildMagic.LibFoundation.Intersection.Intersector
GetContactTime, GetIntersectionType
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
ZeroThreshold
public float ZeroThreshold
default = Mathf::ZERO_TOLERANCE
-
m_rkSegment
private Segment3f m_rkSegment
the objects to intersect: Segment
-
m_rkSphere
private Sphere3f m_rkSphere
the objects to intersect: Sphere
-
m_iQuantity
private int m_iQuantity
information about the intersection set: number of intersections
-
m_akPoint
private Vector3f[] m_akPoint
information about the intersection set: intersection points
-
m_afSegmentT
private float[] m_afSegmentT
information about the intersection set: line equation T-values of intersections
-
-
Method Detail
-
dispose
public void dispose()
delete memory
-
Find
public boolean Find()
find-intersection query- Overrides:
Findin classIntersector- Returns:
- true if the segment and sphere intersect, false otherwise
-
GetPoint
public final Vector3f GetPoint(int i)
Returns the ith intersection point- Parameters:
i- the ith intersection- Returns:
- the ith intersection point
-
GetQuantity
public final int GetQuantity()
Returns the number of intersections- Returns:
- the number of intersections
-
GetSegment
public final Segment3f GetSegment()
object access- Returns:
- the current segment
-
GetSegmentT
public final float GetSegmentT(int i)
Returns the ith intersection point segment parameter t- Parameters:
i- the ith intersection- Returns:
- the ith intersection point segment parameter t
-
GetSphere
public final Sphere3f GetSphere()
object access- Returns:
- the current sphere
-
Test
public boolean Test()
test-intersection query- Overrides:
Testin classIntersector- Returns:
- true if the segment and sphere intersect, false otherwise
-
-