Class 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 Detail

      • S2AreaCentroid

        public S2AreaCentroid​(double area,
                              @Nullable
                              S2Point centroid)