Package com.google.common.geometry
Class S2AreaCentroid
- java.lang.Object
-
- com.google.common.geometry.S2AreaCentroid
-
- All Implemented Interfaces:
Serializable
@GwtCompatible(serializable=true) public final class S2AreaCentroid extends Object implements Serializable
The area of an interior, i.e. the region on the left side of an odd number of loops and optionally a centroid. The area is between 0 and 4*Pi. If it has a centroid, it is the true centroid of the interior multiplied by the area of the shape. Note that the centroid may not be contained by the shape.- Author:
- dbentley@google.com (Daniel Bentley)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description S2AreaCentroid(double area, S2Point centroid)
-