georegression.struct.line
Class LineSegment2D_F32
- java.lang.Object
-
- georegression.struct.line.LineSegment2D_F32
-
- All Implemented Interfaces:
- java.io.Serializable
public class LineSegment2D_F32 extends java.lang.Object implements java.io.SerializableDefines a line segment by its two end points.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description Point2D_F32aPoint2D_F32b
-
Constructor Summary
Constructors Constructor and Description LineSegment2D_F32()LineSegment2D_F32(float x0, float y0, float x1, float y1)LineSegment2D_F32(Point2D_F32 a, Point2D_F32 b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description LineSegment2D_F32copy()Point2D_F32getA()Point2D_F32getB()floatgetLength()floatgetLength2()voidset(float x0, float y0, float x1, float y1)voidset(LineSegment2D_F32 l)voidset(Point2D_F32 a, Point2D_F32 b)voidsetA(Point2D_F32 a)voidsetB(Point2D_F32 b)floatslopeX()floatslopeY()static LineSegment2D_F32wrap(Point2D_F32 a, Point2D_F32 b)
-
-
-
Field Detail
-
a
public Point2D_F32 a
-
b
public Point2D_F32 b
-
-
Constructor Detail
-
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 Detail
-
wrap
public static LineSegment2D_F32 wrap(Point2D_F32 a, Point2D_F32 b)
-
set
public void set(LineSegment2D_F32 l)
-
set
public void set(Point2D_F32 a, Point2D_F32 b)
-
set
public void set(float x0, float y0, float x1, float y1)
-
getA
public Point2D_F32 getA()
-
setA
public void setA(Point2D_F32 a)
-
getB
public Point2D_F32 getB()
-
setB
public void setB(Point2D_F32 b)
-
slopeX
public float slopeX()
-
slopeY
public float slopeY()
-
getLength
public float getLength()
-
getLength2
public float getLength2()
-
copy
public LineSegment2D_F32 copy()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG