Class IntrSphere3Sphere3f
- java.lang.Object
-
- WildMagic.LibFoundation.Intersection.Intersector
-
- WildMagic.LibFoundation.Intersection.IntrSphere3Sphere3f
-
- All Implemented Interfaces:
java.io.Serializable
public class IntrSphere3Sphere3f 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_fRadius
private Vector3f
m_kCenter
Circle of intersection for static spheres.private Vector3f
m_kContactPoint
Point of intersection for dynamic spheres.private Vector3f
m_kNormal
Circle of intersection for static spheres.private Vector3f
m_kUAxis
Circle of intersection for static spheres.private Vector3f
m_kVAxis
Circle of intersection for static spheres.private Sphere3f
m_rkSphere0
the objects to intersect: Sphere0private Sphere3f
m_rkSphere1
the objects to intersect: Sphere1private static long
serialVersionUID
-
Fields inherited from class WildMagic.LibFoundation.Intersection.Intersector
m_fContactTime, m_iIntersectionType
-
-
Constructor Summary
Constructors Constructor Description IntrSphere3Sphere3f(Sphere3f rkSphere0, Sphere3f rkSphere1)
Creates an IntrSphere3Sphere3f object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
delete memoryboolean
Find()
static find-intersection queryboolean
Find(float fTMax, Vector3f rkVelocity0, Vector3f rkVelocity1)
dynamic find-intersection queryVector3f
GetCenter()
Intersection centerVector3f
GetContactPoint()
intersection set for dynamic find-intersection queryVector3f
GetNormal()
Intersection plane normalfloat
GetRadius()
Intersection radiusSphere3f
GetSphere0()
object accessSphere3f
GetSphere1()
object accessVector3f
GetUAxis()
Intersection U-VectorVector3f
GetVAxis()
Intersection V-Vectorboolean
Test()
static test-intersection queryboolean
Test(float fTMax, Vector3f rkVelocity0, Vector3f rkVelocity1)
dynamic 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
-
m_rkSphere0
private Sphere3f m_rkSphere0
the objects to intersect: Sphere0
-
m_rkSphere1
private Sphere3f m_rkSphere1
the objects to intersect: Sphere1
-
m_kCenter
private Vector3f m_kCenter
Circle of intersection for static spheres. The center is C and lies on a plane spanned by the unit-length, orthogonal vectors U and V. The plane normal is a unit-length vector N. The radius of the circle in that plane is R.
-
m_kUAxis
private Vector3f m_kUAxis
Circle of intersection for static spheres. The center is C and lies on a plane spanned by the unit-length, orthogonal vectors U and V. The plane normal is a unit-length vector N. The radius of the circle in that plane is R.
-
m_kVAxis
private Vector3f m_kVAxis
Circle of intersection for static spheres. The center is C and lies on a plane spanned by the unit-length, orthogonal vectors U and V. The plane normal is a unit-length vector N. The radius of the circle in that plane is R.
-
m_kNormal
private Vector3f m_kNormal
Circle of intersection for static spheres. The center is C and lies on a plane spanned by the unit-length, orthogonal vectors U and V. The plane normal is a unit-length vector N. The radius of the circle in that plane is R.
-
m_fRadius
private float m_fRadius
-
m_kContactPoint
private Vector3f m_kContactPoint
Point of intersection for dynamic spheres.
-
-
Method Detail
-
dispose
public void dispose()
delete memory
-
Find
public boolean Find()
static find-intersection query- Overrides:
Find
in classIntersector
- Returns:
- true if the two spheres intersect, false otherwise
-
Find
public boolean Find(float fTMax, Vector3f rkVelocity0, Vector3f rkVelocity1)
dynamic find-intersection query- Returns:
- true if the two spheres intersect, false otherwise
-
GetCenter
public final Vector3f GetCenter()
Intersection center- Returns:
- center
-
GetContactPoint
public final Vector3f GetContactPoint()
intersection set for dynamic find-intersection query- Returns:
- contact point
-
GetNormal
public final Vector3f GetNormal()
Intersection plane normal- Returns:
- plane normal
-
GetRadius
public final float GetRadius()
Intersection radius- Returns:
- radius
-
GetSphere0
public final Sphere3f GetSphere0()
object access- Returns:
- the sphere0
-
GetSphere1
public final Sphere3f GetSphere1()
object access- Returns:
- the sphere1
-
GetUAxis
public final Vector3f GetUAxis()
Intersection U-Vector- Returns:
- U-Vector
-
GetVAxis
public final Vector3f GetVAxis()
Intersection V-Vector- Returns:
- V-Vector
-
Test
public boolean Test()
static test-intersection query- Overrides:
Test
in classIntersector
- Returns:
- true if the two spheres intersect, false otherwise
-
-