Interface BoundarySource2S
-
- All Superinterfaces:
BoundarySource<GreatArc>
- All Known Implementing Classes:
BoundaryList2S,ConvexArea2S,GreatArcPath,RegionBSPTree2S
public interface BoundarySource2S extends BoundarySource<GreatArc>
Extension of theBoundarySourceinterface for spherical 2D space.
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static BoundarySource2Sof(java.util.Collection<GreatArc> boundaries)Return aBoundarySource2Sinstance containing the given boundaries.static BoundarySource2Sof(GreatArc... boundaries)Return aBoundarySource2Sinstance containing the given boundaries.default BoundaryList2StoList()Return aBoundaryList2Scontaining the boundaries in this instance.default RegionBSPTree2StoTree()Return a BSP tree constructed from the boundaries contained in this instance.-
Methods inherited from interface org.apache.commons.geometry.core.partitioning.BoundarySource
boundaryStream
-
-
-
-
Method Detail
-
toList
default BoundaryList2S toList()
Return aBoundaryList2Scontaining the boundaries in this instance.- Returns:
- a
BoundaryList2Scontaining the boundaries in this instance
-
toTree
default RegionBSPTree2S toTree()
Return a BSP tree constructed from the boundaries contained in this instance. The default implementation creates a new, empty tree and inserts the boundaries from this instance.- Returns:
- a BSP tree constructed from the boundaries in this instance
-
of
static BoundarySource2S of(GreatArc... boundaries)
Return aBoundarySource2Sinstance containing the given boundaries.- Parameters:
boundaries- boundaries to include in the boundary source- Returns:
- a boundary source containing the given boundaries
-
of
static BoundarySource2S of(java.util.Collection<GreatArc> boundaries)
Return aBoundarySource2Sinstance containing the given boundaries. The given collection is used directly as the source of the line subsets; no copy is made.- Parameters:
boundaries- boundaries to include in the boundary source- Returns:
- a boundary source containing the given boundaries
-
-