Class AbstractConvexHyperplaneBoundedRegion.ConvexRegionBoundaryBuilder<P extends Point<P>, S extends HyperplaneConvexSubset<P>>

java.lang.Object
org.apache.commons.geometry.core.partitioning.AbstractConvexHyperplaneBoundedRegion.ConvexRegionBoundaryBuilder<P,S>
Type Parameters:
P - Point implementation type
S - Hyperplane convex subset implementation type
Enclosing class:
AbstractConvexHyperplaneBoundedRegion<P extends Point<P>, S extends HyperplaneConvexSubset<P>>

Internal class encapsulating the logic for building convex region boundaries from collections of hyperplanes.
  • Constructor Details

    • ConvexRegionBoundaryBuilder

      public ConvexRegionBoundaryBuilder(Class<S> subsetType)
      Construct a new instance for building convex region boundaries with the given hyperplane convex subset implementation type.
      Parameters:
      subsetType - Hyperplane convex subset implementation type
  • Method Details

    • build

      public List<S> build(Iterable<? extends Hyperplane<P>> bounds)
      Compute a list of hyperplane convex subsets representing the boundaries of the convex region bounded by the given collection of hyperplanes.
      Parameters:
      bounds - hyperplanes defining the convex region
      Returns:
      a list of hyperplane convex subsets representing the boundaries of the convex region
      Throws:
      IllegalArgumentException - if the given hyperplanes do not form a convex region