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.
See Also:
  • Field Details

    • area

      private final double area
    • centroid

      private final S2Point centroid
  • Constructor Details

    • S2AreaCentroid

      public S2AreaCentroid(double area, @Nullable S2Point centroid)
  • Method Details