Class AbstractRegionBSPTree.RegionSizeProperties<P extends Point<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 java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      private P centroid
      The centroid of the region.
      private double size
      The size of the region.
    • Constructor Summary

      Constructors 
      Constructor Description
      RegionSizeProperties​(double size, P centroid)
      Simple constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      P getCentroid()
      Get the centroid of the region.
      double getSize()
      Get the size of the region.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • size

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

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

      • RegionSizeProperties

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

      • 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