Class LineSegment2D_F32

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

@Generated("georegression.struct.line.LineSegment2D_F64") public class LineSegment2D_F32 extends Object implements Serializable
Defines a line segment by its two end points.
See Also:
  • Field Details

  • Constructor Details

    • LineSegment2D_F32

      public LineSegment2D_F32()
    • LineSegment2D_F32

      public LineSegment2D_F32(Point2D_F32 a, Point2D_F32 b)
    • LineSegment2D_F32

      public LineSegment2D_F32(float x0, float y0, float x1, float y1)
  • Method Details

    • wrap

      public static LineSegment2D_F32 wrap(Point2D_F32 a, Point2D_F32 b)
    • setTo

    • setTo

    • setTo

      public LineSegment2D_F32 setTo(float x0, float y0, float x1, float y1)
    • zero

      public void zero()
    • pointOnLine

      public Point2D_F32 pointOnLine(float fraction, @Nullable @Nullable Point2D_F32 p)
      Computes a point on the line based on the fraction distance between 'a' and 'b'
    • axisOnLineX

      public float axisOnLineX(float fraction)
      Value of x-axis for a point on the line at this fractional location between 'a' and 'b'
    • axisOnLineY

      public float axisOnLineY(float fraction)
      Value of y-axis for a point on the line at this fractional location between 'a' and 'b'
    • slopeX

      public float slopeX()
    • slopeY

      public float slopeY()
    • getLength

      public float getLength()
    • getLength2

      public float getLength2()
    • copy

      public LineSegment2D_F32 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