Class IntrSphere3Sphere3f

  • All Implemented Interfaces:
    java.io.Serializable

    public class IntrSphere3Sphere3f
    extends Intersector
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Detail

      • 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.
    • Constructor Detail

      • IntrSphere3Sphere3f

        public IntrSphere3Sphere3f​(Sphere3f rkSphere0,
                                   Sphere3f rkSphere1)
        Creates an IntrSphere3Sphere3f object
        Parameters:
        rkSphere0 - the first sphere
        rkSphere1 - the second sphere
    • Method Detail

      • dispose

        public void dispose()
        delete memory
      • Find

        public boolean Find()
        static find-intersection query
        Overrides:
        Find in class Intersector
        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 class Intersector
        Returns:
        true if the two spheres intersect, false otherwise
      • Test

        public boolean Test​(float fTMax,
                            Vector3f rkVelocity0,
                            Vector3f rkVelocity1)
        dynamic test-intersection query
        Returns:
        true if the two spheres intersect, false otherwise