Class LineConvexSubset3D
java.lang.Object
org.apache.commons.geometry.euclidean.threed.line.LineSubset3D
org.apache.commons.geometry.euclidean.threed.line.LineConvexSubset3D
- Direct Known Subclasses:
Ray3D, ReverseRay3D, Segment3D
Class representing a convex subset of a line in 3D Euclidean space. Instances
need not be finite, in which case the start or end point (or both) will be null.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if the given point lies in the line subset.abstract Vector3DGet the end point for the line subset.Get the 1D interval for the line subset.abstract Vector3DGet the start point for the line subset.abstract doubleGet the 1D end location of the line subset orDouble.POSITIVE_INFINITYif no end location exists.Get the subspace region for the instance.abstract doubleGet the 1D start location of the line subset orDouble.NEGATIVE_INFINITYif no start location exists.abstract LineConvexSubset3DTransform this instance.Methods inherited from class LineSubset3D
getBounds, getCentroid, getLine, toSpace, toSubspaceMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Embedding
toSpace, toSubspaceMethods inherited from interface Sized
getSize, isFinite, isInfinite
-
Method Details
-
getStartPoint
Get the start point for the line subset.- Returns:
- the start point for the line subset, or null if no start point exists
-
getSubspaceStart
Get the 1D start location of the line subset orDouble.NEGATIVE_INFINITYif no start location exists.- Returns:
- the 1D start location of the line subset or
Double.NEGATIVE_INFINITYif no start location exists.
-
getEndPoint
Get the end point for the line subset.- Returns:
- the end point for the line subset, or null if no end point exists.
-
getSubspaceEnd
Get the 1D end location of the line subset orDouble.POSITIVE_INFINITYif no end location exists.- Returns:
- the 1D end location of the line subset or
Double.POSITIVE_INFINITYif no end location exists
-
getSubspaceRegion
Get the subspace region for the instance.- Specified by:
getSubspaceRegionin interfaceRegionEmbedding<Vector3D,Vector1D> - Specified by:
getSubspaceRegionin classLineSubset3D- Returns:
- the subspace region for the instance
-
getInterval
Get the 1D interval for the line subset. This method is an alias forgetSubspaceRegion().- Returns:
- the 1D interval for the line subset.
-
contains
-
transform
Transform this instance.- Parameters:
transform- the transform to apply- Returns:
- a new, transformed instance
-