public final class Segment3D extends LineConvexSubset3D
Instances of this class are guaranteed to be immutable.
Lines3D,
Line Segment| Modifier and Type | Method and Description |
|---|---|
Bounds3D |
getBounds()
Get the 3D bounding box of the line subset or null if the subset is
empty or infinite.
|
Vector3D |
getCentroid()
Get the centroid, or geometric center, of the line subset or null if
the subset is empty or infinite.
|
Vector3D |
getEndPoint()
Get the end point for the line subset.
|
double |
getSize()
Get the size (length) of the line subset.
|
Vector3D |
getStartPoint()
Get the start point for the line subset.
|
double |
getSubspaceEnd()
Get the 1D end location of the line subset or
Double.POSITIVE_INFINITY if
no end location exists. |
double |
getSubspaceStart()
Get the 1D start location of the line subset or
Double.NEGATIVE_INFINITY if
no start location exists. |
boolean |
isFinite()
Return true if the line subset is finite.
|
boolean |
isInfinite()
Return true if the line subset is infinite.
|
String |
toString() |
Segment3D |
transform(Transform<Vector3D> transform)
Transform this instance.
|
contains, getInterval, getSubspaceRegiongetLine, toSpace, toSubspaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoSpace, toSubspacepublic boolean isInfinite()
This method always returns false.
isInfinite in interface SizedisInfinite in class LineConvexSubset3Dpublic boolean isFinite()
This method always returns true.
isFinite in interface SizedisFinite in class LineConvexSubset3Dpublic Vector3D getStartPoint()
getStartPoint in class LineConvexSubset3Dpublic double getSubspaceStart()
Double.NEGATIVE_INFINITY if
no start location exists.getSubspaceStart in class LineConvexSubset3DDouble.NEGATIVE_INFINITY if
no start location exists.public Vector3D getEndPoint()
getEndPoint in class LineConvexSubset3Dpublic double getSubspaceEnd()
Double.POSITIVE_INFINITY if
no end location exists.getSubspaceEnd in class LineConvexSubset3DDouble.POSITIVE_INFINITY if
no end location existspublic double getSize()
getSize in interface SizedgetSize in class LineConvexSubset3Dpublic Vector3D getCentroid()
getCentroid in class LineSubset3Dpublic Bounds3D getBounds()
getBounds in class LineSubset3Dpublic Segment3D transform(Transform<Vector3D> transform)
transform in class LineConvexSubset3Dtransform - the transform to applyCopyright © 2016–2020 The Apache Software Foundation. All rights reserved.