Package georegression.struct.line
Class LineParametric2D_I32
java.lang.Object
georegression.struct.line.LineParametric2D_I32
- All Implemented Interfaces:
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:
-
Field Summary
Modifier and TypeFieldDescriptionA point on the lineint
The line's slopeint
The line's slope -
Constructor Summary
ConstructorDescriptionLineParametric2D_I32
(int x_0, int y_0, int slopeX, int slopeY) LineParametric2D_I32
(Point2D_I32 p, int slopeX, int slopeY) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
getP()
getPoint()
getPointOnLine
(double t) Returns a point along the line.final int
getX()
final int
getY()
void
setP
(Point2D_I32 p) void
setPoint
(int x, int y) void
setPoint
(Point2D_I32 pt) void
setSlope
(int slopeX, int slopeY) setTo
(LineParametric2D_I32 line) toString()
-
Field Details
-
p
A point on the line -
slopeX
public int slopeXThe line's slope -
slopeY
public int slopeYThe line's slope
-
-
Constructor Details
-
LineParametric2D_I32
public LineParametric2D_I32(int x_0, int y_0, int slopeX, int slopeY) -
LineParametric2D_I32
-
LineParametric2D_I32
public LineParametric2D_I32()
-
-
Method Details
-
setTo
-
setPoint
-
setPoint
public void setPoint(int x, int y) -
setSlope
public void setSlope(int slopeX, int slopeY) -
getPointOnLine
Returns a point along the line. See parametric equation in class description.- Parameters:
t
- Location along the line.- Returns:
- Point on the line.
-
getPoint
-
getX
public final int getX() -
getY
public final int getY() -
getP
-
setP
-
copy
-
toString
-