Class LineSpanningSubset3D
java.lang.Object
org.apache.commons.geometry.euclidean.threed.line.LineSubset3D
org.apache.commons.geometry.euclidean.threed.line.LineConvexSubset3D
org.apache.commons.geometry.euclidean.threed.line.LineSpanningSubset3D
Class representing the span of a line in 3D Euclidean space. This is the set of all points
contained by the line.
Instances of this class are guaranteed to be immutable.
-
Constructor Summary
ConstructorsConstructorDescriptionLineSpanningSubset3D
(Line3D line) Construct a new instance for the given line. -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
containsAbscissa
(double abscissa) Return true if the given abscissa value is contained in the line subset (ie, in the subspace region or one of its 1D boundaries).Get the 3D bounding box of the line subset or null if the subset is empty or infinite.Get the centroid, or geometric center, of the line subset or null if the subset is empty or infinite.Get the end point for the line subset.double
getSize()
Get the size of the instance.Get the start point for the line subset.double
Get the 1D end location of the line subset orDouble.POSITIVE_INFINITY
if no end location exists.double
Get the 1D start location of the line subset orDouble.NEGATIVE_INFINITY
if no start location exists.boolean
isFinite()
Return true if the size of the instance is finite.boolean
Return true if the size of the instance is infinite.toString()
Transform this instance.Methods inherited from class org.apache.commons.geometry.euclidean.threed.line.LineConvexSubset3D
contains, getInterval, getSubspaceRegion
Methods inherited from class org.apache.commons.geometry.euclidean.threed.line.LineSubset3D
getLine, toSpace, toSubspace
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.commons.geometry.core.Embedding
toSpace, toSubspace
-
Constructor Details
-
LineSpanningSubset3D
LineSpanningSubset3D(Line3D line) Construct a new instance for the given line.- Parameters:
line
- line to construct the span for
-
-
Method Details
-
isInfinite
public boolean isInfinite()Return true if the size of the instance is infinite.This method always returns
true
.- Returns:
- true if the size of the instance is infinite
-
isFinite
public boolean isFinite()Return true if the size of the instance is finite.This method always returns
false
.- Returns:
- true if the size of the instance is finite
-
getSize
public double getSize()Get the size of the instance.This method always returns
Double.POSITIVE_INFINITY
.- Returns:
- the size of the instance
-
getStartPoint
Get the start point for the line subset.This method always returns
null
.- Specified by:
getStartPoint
in classLineConvexSubset3D
- Returns:
- the start point for the line subset, or null if no start point exists
-
getSubspaceStart
public double getSubspaceStart()Get the 1D start location of the line subset orDouble.NEGATIVE_INFINITY
if no start location exists.This method always returns
Double.NEGATIVE_INFINITY
.- Specified by:
getSubspaceStart
in classLineConvexSubset3D
- Returns:
- the 1D start location of the line subset or
Double.NEGATIVE_INFINITY
if no start location exists.
-
getEndPoint
Get the end point for the line subset.This method always returns
null
.- Specified by:
getEndPoint
in classLineConvexSubset3D
- Returns:
- the end point for the line subset, or null if no end point exists.
-
getSubspaceEnd
public double getSubspaceEnd()Get the 1D end location of the line subset orDouble.POSITIVE_INFINITY
if no end location exists.This method always returns
Double.POSITIVE_INFINITY
.- Specified by:
getSubspaceEnd
in classLineConvexSubset3D
- Returns:
- the 1D end location of the line subset or
Double.POSITIVE_INFINITY
if no end location exists
-
getCentroid
Get the centroid, or geometric center, of the line subset or null if the subset is empty or infinite.This method always returns
null
.- Specified by:
getCentroid
in classLineSubset3D
- Returns:
- the centroid of the line subset, or null if the subset is empty or infinite
-
getBounds
Get the 3D bounding box of the line subset or null if the subset is empty or infinite.This method always returns
null
.- Specified by:
getBounds
in classLineSubset3D
- Returns:
- the 3D bounding box the line subset or null if the subset is empty or infinite
-
transform
Transform this instance.- Specified by:
transform
in classLineConvexSubset3D
- Parameters:
transform
- the transform to apply- Returns:
- a new, transformed instance
-
toString
-
containsAbscissa
boolean containsAbscissa(double abscissa) Return true if the given abscissa value is contained in the line subset (ie, in the subspace region or one of its 1D boundaries).- Specified by:
containsAbscissa
in classLineConvexSubset3D
- Parameters:
abscissa
- abscissa to check- Returns:
- true if
abscissa
lies on the inside or boundary of the subspace region
-