public final class ReverseRay3D extends LineConvexSubset3D
Ray3D
and reversing the line direction.
Instances of this class are guaranteed to be immutable.
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() |
ReverseRay3D |
transform(Transform<Vector3D> transform)
Transform this instance.
|
contains, getInterval, getSubspaceRegion
getLine, toSpace, toSubspace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
toSpace, toSubspace
public boolean isInfinite()
This method always returns true
.
isInfinite
in interface Sized
isInfinite
in class LineConvexSubset3D
public boolean isFinite()
This method always returns false
.
isFinite
in interface Sized
isFinite
in class LineConvexSubset3D
public double getSize()
This method always returns Double.POSITIVE_INFINITY
.
getSize
in interface Sized
getSize
in class LineConvexSubset3D
public Vector3D getStartPoint()
This method always returns null
.
getStartPoint
in class LineConvexSubset3D
public double getSubspaceStart()
Double.NEGATIVE_INFINITY
if
no start location exists.
This method always returns Double.NEGATIVE_INFINITY
.
getSubspaceStart
in class LineConvexSubset3D
Double.NEGATIVE_INFINITY
if
no start location exists.public Vector3D getEndPoint()
getEndPoint
in class LineConvexSubset3D
public double getSubspaceEnd()
Double.POSITIVE_INFINITY
if
no end location exists.getSubspaceEnd
in class LineConvexSubset3D
Double.POSITIVE_INFINITY
if
no end location existspublic Vector3D getCentroid()
This method always returns null
.
getCentroid
in class LineSubset3D
public Bounds3D getBounds()
This method always returns null
.
getBounds
in class LineSubset3D
public ReverseRay3D transform(Transform<Vector3D> transform)
transform
in class LineConvexSubset3D
transform
- the transform to applyCopyright © 2016–2020 The Apache Software Foundation. All rights reserved.