Class Line2f

  • All Implemented Interfaces:
    java.io.Serializable

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

      Fields 
      Modifier and Type Field Description
      Vector2f Direction
      Line Origin and Direction vectors The line is represented as P+t*D where P is the line origin and D is a unit-length direction vector.
      Vector2f Origin
      Line Origin and Direction vectors The line is represented as P+t*D where P is the line origin and D is a unit-length direction vector.
      private static long serialVersionUID  
    • 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 Vector2f Origin
        Line Origin and Direction vectors The line is represented as P+t*D where P is the line origin and D is a unit-length direction vector. The user must ensure that the direction vector satisfies this condition.
      • Direction

        public Vector2f Direction
        Line Origin and Direction vectors The line is represented as P+t*D where P is the line origin and D is a unit-length direction vector. The user must ensure that the direction vector satisfies this condition.
    • Constructor Detail

      • Line2f

        public Line2f()
        construction
      • Line2f

        public Line2f​(Line2f rkLine)
        copy construction
        Parameters:
        rkLine - line
      • Line2f

        public Line2f​(Vector2f rkOrigin,
                      Vector2f rkDirection)
        construction
        Parameters:
        rkOrigin - line origin
        rkDirection - line direction unit-length
    • Method Detail

      • dispose

        public void dispose()
        delete memory