Package georegression.struct.line
Class LineSegment3D_F64
java.lang.Object
georegression.struct.line.LineSegment3D_F64
- All Implemented Interfaces:
Serializable
Defines a line segment by its two end points.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLineSegment3D_F64
(double x0, double y0, double z0, double x1, double y1, double z1) -
Method Summary
Modifier and TypeMethodDescriptiondouble
axisOnLineX
(double fraction) Value of x-axis for a point on the line at this fractional location between 'a' and 'b'double
axisOnLineY
(double fraction) Value of y-axis for a point on the line at this fractional location between 'a' and 'b'double
axisOnLineZ
(double fraction) Value of z-axis for a point on the line at this fractional location between 'a' and 'b'copy()
boolean
double
double
int
hashCode()
pointOnLine
(double fraction, @Nullable Point3D_F64 p) Computes a point on the line based on the fraction distance between 'a' and 'b'setTo
(double x0, double y0, double z0, double x1, double y1, double z1) setTo
(Point3D_F64 a, Point3D_F64 b) double
slopeX()
double
slopeY()
double
slopeZ()
toString()
static LineSegment3D_F64
wrap
(Point3D_F64 a, Point3D_F64 b) void
zero()
-
Field Details
-
a
-
b
-
-
Constructor Details
-
LineSegment3D_F64
public LineSegment3D_F64() -
LineSegment3D_F64
-
LineSegment3D_F64
public LineSegment3D_F64(double x0, double y0, double z0, double x1, double y1, double z1)
-
-
Method Details
-
wrap
-
setTo
-
setTo
-
setTo
-
zero
public void zero() -
pointOnLine
Computes a point on the line based on the fraction distance between 'a' and 'b' -
axisOnLineX
public double axisOnLineX(double fraction) Value of x-axis for a point on the line at this fractional location between 'a' and 'b' -
axisOnLineY
public double axisOnLineY(double fraction) Value of y-axis for a point on the line at this fractional location between 'a' and 'b' -
axisOnLineZ
public double axisOnLineZ(double fraction) Value of z-axis for a point on the line at this fractional location between 'a' and 'b' -
slopeX
public double slopeX() -
slopeY
public double slopeY() -
slopeZ
public double slopeZ() -
getLength
public double getLength() -
getLength2
public double getLength2() -
copy
-
toString
-
equals
-
hashCode
public int hashCode()
-