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.
-
-
Constructor Summary
Constructors Constructor Description AreaMeasure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(S2Point a, S2Point b, S2Point c)doublevalue(int numVertices, com.google.common.base.Supplier<Boolean> isNormalized)Returns the area.
-
-
-
Method Detail
-
accept
public void accept(S2Point a, S2Point b, S2Point c)
- Specified by:
acceptin interfaceS2ShapeUtil.TriangleConsumer
-
value
public double value(int numVertices, com.google.common.base.Supplier<Boolean> isNormalized)Returns the area. Only call after all triangles have been consumed.
-
-