georegression.struct.line
Class LineSegment2D_F64
- java.lang.Object
-
- georegression.struct.line.LineSegment2D_F64
-
- All Implemented Interfaces:
- java.io.Serializable
public class LineSegment2D_F64 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_F64aPoint2D_F64b
-
Constructor Summary
Constructors Constructor and Description LineSegment2D_F64()LineSegment2D_F64(double x0, double y0, double x1, double y1)LineSegment2D_F64(Point2D_F64 a, Point2D_F64 b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description LineSegment2D_F64copy()Point2D_F64getA()Point2D_F64getB()doublegetLength()doublegetLength2()voidset(double x0, double y0, double x1, double y1)voidset(LineSegment2D_F64 l)voidset(Point2D_F64 a, Point2D_F64 b)voidsetA(Point2D_F64 a)voidsetB(Point2D_F64 b)doubleslopeX()doubleslopeY()static LineSegment2D_F64wrap(Point2D_F64 a, Point2D_F64 b)
-
-
-
Field Detail
-
a
public Point2D_F64 a
-
b
public Point2D_F64 b
-
-
Constructor Detail
-
LineSegment2D_F64
public LineSegment2D_F64()
-
LineSegment2D_F64
public LineSegment2D_F64(Point2D_F64 a, Point2D_F64 b)
-
LineSegment2D_F64
public LineSegment2D_F64(double x0, double y0, double x1, double y1)
-
-
Method Detail
-
wrap
public static LineSegment2D_F64 wrap(Point2D_F64 a, Point2D_F64 b)
-
set
public void set(LineSegment2D_F64 l)
-
set
public void set(Point2D_F64 a, Point2D_F64 b)
-
set
public void set(double x0, double y0, double x1, double y1)
-
getA
public Point2D_F64 getA()
-
setA
public void setA(Point2D_F64 a)
-
getB
public Point2D_F64 getB()
-
setB
public void setB(Point2D_F64 b)
-
slopeX
public double slopeX()
-
slopeY
public double slopeY()
-
getLength
public double getLength()
-
getLength2
public double getLength2()
-
copy
public LineSegment2D_F64 copy()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG