public final class EmbeddedTreeLineSubset3D extends LineSubset3D
RegionBSPTree1D. This class can represent convex, non-convex, finite,
infinite, and empty regions.
This class is mutable and not thread safe.
| Constructor and Description |
|---|
EmbeddedTreeLineSubset3D(Line3D line)
Construct a new, empty subset for the given line.
|
EmbeddedTreeLineSubset3D(Line3D line,
boolean full)
Construct a new subset for the given line.
|
EmbeddedTreeLineSubset3D(Line3D line,
RegionBSPTree1D region)
Construct a new instance from its defining line and subspace region.
|
| 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.
|
double |
getSize() |
RegionBSPTree1D |
getSubspaceRegion()
Get the subspace region for the instance.
|
List<LineConvexSubset3D> |
toConvex()
Return a list of
LineConvexSubset3D instances representing the same region
as this instance. |
String |
toString() |
EmbeddedTreeLineSubset3D |
transform(Transform<Vector3D> transform)
Transform this instance.
|
getLine, toSpace, toSubspaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoSpace, toSubspaceisFinite, isInfinitepublic EmbeddedTreeLineSubset3D(Line3D line)
line - line defining the subsetpublic EmbeddedTreeLineSubset3D(Line3D line, boolean full)
full
is true, then the subset will cover the entire line; otherwise,
it will be empty.line - line defining the subsetfull - if true, the subset will cover the entire space;
otherwise it will be emptypublic EmbeddedTreeLineSubset3D(Line3D line, RegionBSPTree1D region)
line - line defining the subsetregion - subspace region for the subsetpublic double getSize()
public RegionBSPTree1D getSubspaceRegion()
getSubspaceRegion in interface RegionEmbedding<Vector3D,Vector1D>getSubspaceRegion in class LineSubset3Dpublic Vector3D getCentroid()
getCentroid in class LineSubset3Dpublic Bounds3D getBounds()
getBounds in class LineSubset3Dpublic EmbeddedTreeLineSubset3D transform(Transform<Vector3D> transform)
transform - the transform to applypublic List<LineConvexSubset3D> toConvex()
LineConvexSubset3D instances representing the same region
as this instance.LineConvexSubset3D instances representing the same region
as this instance.Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.