Class AbstractRegionBSPTree.RegionSizeProperties<P extends Point<P>>

java.lang.Object
org.apache.commons.geometry.core.partitioning.bsp.AbstractRegionBSPTree.RegionSizeProperties<P>
Type Parameters:
P - Point implementation type
Enclosing class:
AbstractRegionBSPTree<P extends Point<P>,N extends AbstractRegionBSPTree.AbstractRegionNode<P,N>>

protected static class AbstractRegionBSPTree.RegionSizeProperties<P extends Point<P>> extends Object
Class containing the primary size-related properties of a region. These properties are typically computed at the same time, so this class serves to encapsulate the result of the combined computation.
  • Field Details

    • size

      private final double size
      The size of the region.
    • centroid

      private final P extends Point<P> centroid
      The centroid of the region.
  • Constructor Details

    • RegionSizeProperties

      public RegionSizeProperties(double size, P centroid)
      Simple constructor.
      Parameters:
      size - the region size
      centroid - the region centroid
  • Method Details

    • getSize

      public double getSize()
      Get the size of the region.
      Returns:
      the size of the region
    • getCentroid

      public P getCentroid()
      Get the centroid of the region.
      Returns:
      the centroid of the region