Package com.google.common.geometry
Class S2ShapeUtil.AreaCentroidMeasure
java.lang.Object
com.google.common.geometry.S2ShapeUtil.AreaCentroidMeasure
- All Implemented Interfaces:
S2ShapeUtil.TriangleConsumer
- Enclosing class:
S2ShapeUtil
public static final class S2ShapeUtil.AreaCentroidMeasure
extends Object
implements S2ShapeUtil.TriangleConsumer
A collector of both combined area and centroid values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final S2ShapeUtil.AreaMeasure
private final S2ShapeUtil.CentroidMeasure
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
area
-
centroid
-
-
Constructor Details
-
AreaCentroidMeasure
public AreaCentroidMeasure()
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceS2ShapeUtil.TriangleConsumer
-
value
Returns the area and centroid. Only call after all triangles have been consumed.
-