Class Ray3f

  • All Implemented Interfaces:
    java.io.Serializable

    public class Ray3f
    extends java.lang.Object
    implements java.io.Serializable
    The ray is represented as P+t*D, where P is the ray origin, D is a unit-length direction vector, and t >= 0. The user must ensure that the direction vector satisfies this condition.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      Vector3f Direction
      The ray is represented as P+t*D, where P is the ray origin, D is a unit-length direction vector, and t >= 0.
      Vector3f Origin
      The ray is represented as P+t*D, where P is the ray origin, D is a unit-length direction vector, and t >= 0.
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      Ray3f()
      construction
      Ray3f​(Ray3f rkRay)
      Copy constructor
      Ray3f​(Vector3f rkOrigin, Vector3f rkDirection)
      construction
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()
      delete memory
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • Origin

        public Vector3f Origin
        The ray is represented as P+t*D, where P is the ray origin, D is a unit-length direction vector, and t >= 0. The user must ensure that the direction vector satisfies this condition.
      • Direction

        public Vector3f Direction
        The ray is represented as P+t*D, where P is the ray origin, D is a unit-length direction vector, and t >= 0. The user must ensure that the direction vector satisfies this condition.
    • Constructor Detail

      • Ray3f

        public Ray3f()
        construction
      • Ray3f

        public Ray3f​(Ray3f rkRay)
        Copy constructor
        Parameters:
        rkRay - the ray to copy.
      • Ray3f

        public Ray3f​(Vector3f rkOrigin,
                     Vector3f rkDirection)
        construction
        Parameters:
        rkOrigin - ray origin
        rkDirection - direction, unit-length
    • Method Detail

      • dispose

        public void dispose()
        delete memory