Uses of Class
com.google.common.geometry.S2AreaCentroid
-
Uses of S2AreaCentroid in com.google.common.geometry
Methods in com.google.common.geometry that return S2AreaCentroidModifier and TypeMethodDescriptionS2Loop.getAreaAndCentroid()Returns a pair ofS2Loop.getArea()andS2Loop.getCentroid(), computed more efficiently than computing them separately.S2Polygon.getAreaAndCentroid()Returns the area of the polygon interior, i.e. the region on the left side of an odd number of loops (the area is between 0 and 4*Pi) and the true centroid of the polygon, weighted by the area of the polygon (see s2.h for details on centroids).S2ShapeUtil.AreaCentroidMeasure.value(int numVertices, com.google.common.base.Supplier<Boolean> isNormalized) Returns the area and centroid.