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 java.lang.Object implements S2ShapeUtil.TriangleConsumer
A collector of the steradian area.
-
-
Field Summary
Fields Modifier and Type Field Description private double
area
-
Constructor Summary
Constructors Constructor Description AreaMeasure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(S2Point a, S2Point b, S2Point c)
double
value(int numVertices, com.google.common.base.Supplier<java.lang.Boolean> isNormalized)
Returns the area.
-
-
-
Method Detail
-
accept
public void accept(S2Point a, S2Point b, S2Point c)
- Specified by:
accept
in interfaceS2ShapeUtil.TriangleConsumer
-
value
public double value(int numVertices, com.google.common.base.Supplier<java.lang.Boolean> isNormalized)
Returns the area. Only call after all triangles have been consumed.
-
-