Class RegionBSPTree2D

All Implemented Interfaces:
BoundarySource<LineConvexSubset>, BSPSubtree<Vector2D,RegionBSPTree2D.RegionNode2D>, BSPTree<Vector2D,RegionBSPTree2D.RegionNode2D>, HyperplaneBoundedRegion<Vector2D>, Splittable<Vector2D,HyperplaneBoundedRegion<Vector2D>>, Region<Vector2D>, Sized, BoundarySource2D, Linecastable2D

public final class RegionBSPTree2D extends AbstractRegionBSPTree<Vector2D,RegionBSPTree2D.RegionNode2D> implements BoundarySource2D
Binary space partitioning (BSP) tree representing a region in two dimensional Euclidean space.
  • Field Details

    • boundaryPaths

      private List<LinePath> boundaryPaths
      List of line subset paths comprising the region boundary.
  • Constructor Details

    • RegionBSPTree2D

      public RegionBSPTree2D()
      Create a new, empty region.
    • RegionBSPTree2D

      public RegionBSPTree2D(boolean full)
      Create a new region. If full is true, then the region will represent the entire 2D space. Otherwise, it will be empty.
      Parameters:
      full - whether or not the region should contain the entire 2D space or be empty
  • Method Details