Interface BoundarySource2S

All Superinterfaces:
BoundarySource<GreatArc>
All Known Implementing Classes:
BoundaryList2S, ConvexArea2S, GreatArcPath, RegionBSPTree2S

public interface BoundarySource2S extends BoundarySource<GreatArc>
Extension of the BoundarySource interface for spherical 2D space.
  • Method Details

    • toList

      default BoundaryList2S toList()
      Return a BoundaryList2S containing the boundaries in this instance.
      Returns:
      a BoundaryList2S containing 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 a BoundarySource2S instance 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(Collection<GreatArc> boundaries)
      Return a BoundarySource2S 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