P
- Point implementation typepublic final class RegionCutBoundary<P extends Point<P>> extends Object implements Sized
AbstractRegionNode
's cut that
lies on the boundary of the region. Portions of the node cut may be oriented so
that the plus side of the cut points toward the outside of the region
(getOutsideFacing()
) and other portions toward the inside of the
region (getInsideFacing()
). The inside-facing and outside-facing portions
of the region boundary are represented as lists of disjoint hyperplane convex subsets,
all originating from the same hyperplane convex subset forming the node cut.Modifier and Type | Method and Description |
---|---|
P |
closest(P pt)
Return the closest point to the argument in the inside and outside facing
portions of the cut boundary.
|
boolean |
contains(P pt)
Return true if the given point is contained in the boundary, in either the
inside facing portion or the outside facing portion.
|
boolean |
containsInsideFacing(P pt)
Return true if the given point is contained in the inside-facing portion of
the region boundary.
|
boolean |
containsOutsideFacing(P pt)
Return true if the given point is contained in the outside-facing portion of the
region boundary.
|
List<HyperplaneConvexSubset<P>> |
getInsideFacing()
Get the portion of the cut with its plus side facing the inside of the region.
|
List<HyperplaneConvexSubset<P>> |
getOutsideFacing()
Get the portion of the cut with its plus side facing the outside of the region.
|
double |
getSize()
Get the total size of the cut boundary, including inside and outside facing components.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFinite, isInfinite
public List<HyperplaneConvexSubset<P>> getInsideFacing()
public List<HyperplaneConvexSubset<P>> getOutsideFacing()
public double getSize()
public P closest(P pt)
pt
- the reference pointHyperplaneSubset.closest(Point)
public boolean contains(P pt)
pt
- point to testHyperplaneSubset.contains(Point)
public boolean containsInsideFacing(P pt)
pt
- point to testpublic boolean containsOutsideFacing(P pt)
pt
- point to testCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.