Class IntrRay3Sphere3f

  • All Implemented Interfaces:
    java.io.Serializable

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

      • m_rkRay

        private Ray3f m_rkRay
        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_afRayT

        private float[] m_afRayT
        information about the intersection set: line equation T-values of intersections
    • Constructor Detail

      • IntrRay3Sphere3f

        public IntrRay3Sphere3f​(Ray3f rkRay,
                                Sphere3f rkSphere)
        Creates an IntrRay3Sphere3f object
        Parameters:
        rkRay - the ray to intersect with the sphere
        rkSphere - the Sphere to intersect with the ray
    • Method Detail

      • dispose

        public void dispose()
        delete memory
      • Find

        public boolean Find()
        find-intersection query returns true if the ray and sphere intersect, false otherwise
        Overrides:
        Find in class Intersector
        Returns:
        false
      • 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
      • GetRay

        public final Ray3f GetRay()
        object access
        Returns:
        the current ray
      • GetRayT

        public final float GetRayT​(int i)
        Returns the ith intersection point ray parameter t
        Parameters:
        i - the ith intersection
        Returns:
        the ith intersection point ray parameter t
      • GetSphere

        public final Sphere3f GetSphere()
        object access
        Returns:
        the current sphere
      • Test

        public boolean Test()
        test-intersection query returns true if the ray and sphere intersect, false otherwise
        Overrides:
        Test in class Intersector
        Returns:
        false