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 java.lang.ObjectClass 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.
-
-
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 PgetCentroid()Get the centroid of the region.doublegetSize()Get the size of the region.
-
-
-
Constructor Detail
-
RegionSizeProperties
public RegionSizeProperties(double size, P centroid)Simple constructor.- Parameters:
size- the region sizecentroid- 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
-
-