georegression.struct.line
Class LineSegment2D_I32
- java.lang.Object
-
- georegression.struct.line.LineSegment2D_I32
-
- All Implemented Interfaces:
- java.io.Serializable
public class LineSegment2D_I32 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_I32aPoint2D_I32b
-
Constructor Summary
Constructors Constructor and Description LineSegment2D_I32()LineSegment2D_I32(int x0, int y0, int x1, int y1)LineSegment2D_I32(Point2D_I32 a, Point2D_I32 b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description LineSegment2D_I32copy()Point2D_I32getA()Point2D_I32getB()doublegetLength()intgetLength2()voidset(int x0, int y0, int x1, int y1)voidset(LineSegment2D_I32 l)voidset(Point2D_I32 a, Point2D_I32 b)voidsetA(Point2D_I32 a)voidsetB(Point2D_I32 b)intslopeX()intslopeY()static LineSegment2D_I32wrap(Point2D_I32 a, Point2D_I32 b)
-
-
-
Field Detail
-
a
public Point2D_I32 a
-
b
public Point2D_I32 b
-
-
Constructor Detail
-
LineSegment2D_I32
public LineSegment2D_I32()
-
LineSegment2D_I32
public LineSegment2D_I32(Point2D_I32 a, Point2D_I32 b)
-
LineSegment2D_I32
public LineSegment2D_I32(int x0, int y0, int x1, int y1)
-
-
Method Detail
-
wrap
public static LineSegment2D_I32 wrap(Point2D_I32 a, Point2D_I32 b)
-
set
public void set(LineSegment2D_I32 l)
-
set
public void set(Point2D_I32 a, Point2D_I32 b)
-
set
public void set(int x0, int y0, int x1, int y1)
-
getA
public Point2D_I32 getA()
-
setA
public void setA(Point2D_I32 a)
-
getB
public Point2D_I32 getB()
-
setB
public void setB(Point2D_I32 b)
-
slopeX
public int slopeX()
-
slopeY
public int slopeY()
-
getLength
public double getLength()
-
getLength2
public int getLength2()
-
copy
public LineSegment2D_I32 copy()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG