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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the centroid of the region.double
getSize()
Get the size of the region.
-
Field Details
-
size
private final double sizeThe size of the region. -
centroid
The centroid of the region.
-
-
Constructor Details
-
RegionSizeProperties
Simple constructor.- Parameters:
size
- the region sizecentroid
- the region centroid
-
-
Method Details
-
getSize
public double getSize()Get the size of the region.- Returns:
- the size of the region
-
getCentroid
Get the centroid of the region.- Returns:
- the centroid of the region
-