Class LineParametric2D_F64

java.lang.Object
georegression.struct.line.LineParametric2D_F64
All Implemented Interfaces:
Serializable

public class LineParametric2D_F64 extends Object implements Serializable

2D line parameterized using parametric equation:
[x, y] = [x_0, y_0] + t·[slopeX, slopeY]
where t specifies the location along the line, (x_0,y_0) is an arbitrary point on the line, and (slopeX,slopeY).

See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • setTo

    • zero

      public void zero()
    • setPoint

      public void setPoint(Point2D_F64 pt)
    • setPoint

      public void setPoint(double x, double y)
    • setSlope

      public void setSlope(Vector2D_F64 slope)
    • setSlope

      public void setSlope(double slopeX, double slopeY)
    • setAngle

      public void setAngle(double angle)
      Sets the slope to the unit vector specified by the provided angle.
      Parameters:
      angle - Angle of the line specified in radians.
    • getAngle

      public double getAngle()
    • getPointOnLine

      public Point2D_F64 getPointOnLine(double t)
      Returns a point along the line. See parametric equation in class description.
      Parameters:
      t - Location along the line.
      Returns:
      Point on the line.
    • getPointOnLine

      public void getPointOnLine(double t, Point2D_F64 x)
    • getPoint

      public Point2D_F64 getPoint()
    • getSlopeX

      public final double getSlopeX()
    • getSlopeY

      public final double getSlopeY()
    • getX

      public final double getX()
    • getY

      public final double getY()
    • copy

      public LineParametric2D_F64 copy()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object