Documentation of 'georegression.struct.line.LineParametric2D_F32' Java class
LineParametric2D_F32
georegression.struct.line

Class LineParametric2D_F32

  • All Implemented Interfaces:
    java.io.Serializable


    public class LineParametric2D_F32
    extends java.lang.Object
    implements java.io.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:
    Serialized Form
    • Constructor Detail

      • LineParametric2D_F32

        public LineParametric2D_F32(float x_0,
                                    float y_0,
                                    float slopeX,
                                    float slopeY)
      • LineParametric2D_F32

        public LineParametric2D_F32()
    • Method Detail

      • setPoint

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

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

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

        public float getAngle()
      • getPointOnLine

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

        public final float getSlopeX()
      • getSlopeY

        public final float getSlopeY()
      • getX

        public final float getX()
      • getY

        public final float getY()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.