Class LineParametric2D_I32

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

public class LineParametric2D_I32 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

    • p

      public Point2D_I32 p
      A point on the line
    • slopeX

      public int slopeX
      The line's slope
    • slopeY

      public int slopeY
      The line's slope
  • Constructor Details

    • LineParametric2D_I32

      public LineParametric2D_I32(int x_0, int y_0, int slopeX, int slopeY)
    • LineParametric2D_I32

      public LineParametric2D_I32(Point2D_I32 p, int slopeX, int slopeY)
    • LineParametric2D_I32

      public LineParametric2D_I32()
  • Method Details

    • setTo

    • setPoint

      public void setPoint(Point2D_I32 pt)
    • setPoint

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

      public void setSlope(int slopeX, int slopeY)
    • 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.
    • getPoint

      public Point2D_I32 getPoint()
    • getX

      public final int getX()
    • getY

      public final int getY()
    • getP

      public Point2D_I32 getP()
    • setP

      public void setP(Point2D_I32 p)
    • copy

      public LineParametric2D_I32 copy()
    • toString

      public String toString()
      Overrides:
      toString in class Object