Package com.google.common.geometry
Class S2ShapeUtil.CentroidMeasure
- java.lang.Object
-
- com.google.common.geometry.S2ShapeUtil.CentroidMeasure
-
- All Implemented Interfaces:
S2ShapeUtil.TriangleConsumer
- Enclosing class:
- S2ShapeUtil
public static final class S2ShapeUtil.CentroidMeasure extends java.lang.Object implements S2ShapeUtil.TriangleConsumer
A collector of the center of mass.
-
-
Field Summary
Fields Modifier and Type Field Description private double[]
sum
-
Constructor Summary
Constructors Constructor Description CentroidMeasure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(S2Point a, S2Point b, S2Point c)
S2Point
value()
Returns the centroid.
-