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