Interface BoundarySource2S
- All Superinterfaces:
BoundarySource<GreatArc>
- All Known Implementing Classes:
BoundaryList2S
,ConvexArea2S
,GreatArcPath
,RegionBSPTree2S
Extension of the
BoundarySource
interface for spherical 2D
space.-
Method Summary
Modifier and TypeMethodDescriptionstatic BoundarySource2S
of
(Collection<GreatArc> boundaries) Return aBoundarySource2S
instance containing the given boundaries.static BoundarySource2S
Return aBoundarySource2S
instance containing the given boundaries.default BoundaryList2S
toList()
Return aBoundaryList2S
containing the boundaries in this instance.default RegionBSPTree2S
toTree()
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 Details
-
toList
Return aBoundaryList2S
containing the boundaries in this instance.- Returns:
- a
BoundaryList2S
containing the boundaries in this instance
-
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
Return aBoundarySource2S
instance containing the given boundaries.- Parameters:
boundaries
- boundaries to include in the boundary source- Returns:
- a boundary source containing the given boundaries
-
of
Return aBoundarySource2S
instance 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
-