Class IntrLine3Sphere3f
- java.lang.Object
-
- WildMagic.LibFoundation.Intersection.Intersector
-
- WildMagic.LibFoundation.Intersection.IntrLine3Sphere3f
-
- All Implemented Interfaces:
java.io.Serializable
public class IntrLine3Sphere3f 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_afLineT
information about the intersection set: line equation T-values of intersectionsprivate Vector3f[]
m_akPoint
information about the intersection set: intersection pointsprivate int
m_iQuantity
information about the intersection set: number of intersectionsprivate Line3f
m_rkLine
the objects to intersect: Lineprivate Sphere3f
m_rkSphere
the objects to intersect: Sphereprivate static long
serialVersionUID
-
Fields inherited from class WildMagic.LibFoundation.Intersection.Intersector
m_fContactTime, m_iIntersectionType
-
-
Constructor Summary
Constructors Constructor Description IntrLine3Sphere3f(Line3f rkLine, Sphere3f rkSphere)
Creates an IntrLine3Sphere3f object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
delete memoryboolean
Find()
find-intersection query returns true if the line and sphere intersect, false otherwiseLine3f
GetLine()
object accessfloat
GetLineT(int i)
Returns the ith intersection point line parameter tVector3f
GetPoint(int i)
Returns the ith intersection pointint
GetQuantity()
Returns the number of intersectionsSphere3f
GetSphere()
object accessboolean
Test()
test-intersection query returns true if the line and sphere intersect, false otherwise-
Methods inherited from class WildMagic.LibFoundation.Intersection.Intersector
GetContactTime, GetIntersectionType
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
m_rkLine
private Line3f m_rkLine
the objects to intersect: Line
-
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_afLineT
private float[] m_afLineT
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 returns true if the line and sphere intersect, false otherwise- Overrides:
Find
in classIntersector
- Returns:
- false
-
GetLine
public final Line3f GetLine()
object access- Returns:
- the current line
-
GetLineT
public final float GetLineT(int i)
Returns the ith intersection point line parameter t- Parameters:
i
- the ith intersection- Returns:
- the ith intersection point line parameter t
-
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
-
GetSphere
public final Sphere3f GetSphere()
object access- Returns:
- the current sphere
-
Test
public boolean Test()
test-intersection query returns true if the line and sphere intersect, false otherwise- Overrides:
Test
in classIntersector
- Returns:
- false
-
-