public final class EmbeddedTreeGreatCircleSubset extends GreatCircleSubset
RegionBSPTree1S
. This class can represent convex, non-convex, and empty regions.
This class is mutable and not thread safe.
Constructor and Description |
---|
EmbeddedTreeGreatCircleSubset(GreatCircle greatCircle)
Construct a new, empty hyperplane subset for the given great circle.
|
EmbeddedTreeGreatCircleSubset(GreatCircle circle,
boolean full)
Construct a new sub-region for the given great circle.
|
EmbeddedTreeGreatCircleSubset(GreatCircle circle,
RegionBSPTree1S region)
Construct a new instance from its defining great circle and subspace region.
|
Modifier and Type | Method and Description |
---|---|
void |
add(EmbeddedTreeGreatCircleSubset subcircle)
Add the region represented by the given subcircle to this instance.
|
void |
add(GreatArc arc)
Add an arc to this instance.
|
RegionBSPTree1S |
getSubspaceRegion() |
Split<EmbeddedTreeGreatCircleSubset> |
split(Hyperplane<Point2S> splitter) |
List<GreatArc> |
toConvex() |
String |
toString() |
EmbeddedTreeGreatCircleSubset |
transform(Transform<Point2S> transform) |
classify, closest, getCentroid, getCircle, getHyperplane, getPrecision, getSize, isEmpty, isFull, toSpace, toSubspace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
contains
isFinite, isInfinite
toSpace, toSubspace
public EmbeddedTreeGreatCircleSubset(GreatCircle greatCircle)
greatCircle
- great circle defining this instancepublic EmbeddedTreeGreatCircleSubset(GreatCircle circle, boolean full)
full
is true, then the region will cover the entire circle; otherwise,
it will be empty.circle
- great circle that the sub-region will belong tofull
- if true, the sub-region will cover the entire circle;
otherwise it will be emptypublic EmbeddedTreeGreatCircleSubset(GreatCircle circle, RegionBSPTree1S region)
circle
- great circle that the sub-region will belong toregion
- subspace regionpublic RegionBSPTree1S getSubspaceRegion()
getSubspaceRegion
in interface RegionEmbedding<Point2S,Point1S>
getSubspaceRegion
in class GreatCircleSubset
public EmbeddedTreeGreatCircleSubset transform(Transform<Point2S> transform)
public List<GreatArc> toConvex()
toConvex
in interface HyperplaneSubset<Point2S>
toConvex
in class GreatCircleSubset
public Split<EmbeddedTreeGreatCircleSubset> split(Hyperplane<Point2S> splitter)
In all cases, the current instance is not modified. However, In order to avoid
unnecessary copying, this method will use the current instance as the split value when
the instance lies entirely on the plus or minus side of the splitter. For example, if
this instance lies entirely on the minus side of the splitter, the sub great circle
returned by Split.getMinus()
will be this instance. Similarly, Split.getPlus()
will return the current instance if it lies entirely on the plus side. Callers need to make
special note of this, since this class is mutable.
public void add(GreatArc arc)
arc
- arc to addIllegalArgumentException
- if the given arc is not from
a great circle equivalent to this instancepublic void add(EmbeddedTreeGreatCircleSubset subcircle)
subcircle
- subcircle to addIllegalArgumentException
- if the given subcircle is not from
a great circle equivalent to this instanceCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.