Package com.google.common.geometry
Class S2EdgeUtil.WedgeContains
- java.lang.Object
-
- com.google.common.geometry.S2EdgeUtil.WedgeContains
-
- All Implemented Interfaces:
S2EdgeUtil.WedgeProcessor
- Enclosing class:
- S2EdgeUtil
public static class S2EdgeUtil.WedgeContains extends java.lang.Object implements S2EdgeUtil.WedgeProcessor
Returns true if wedge A contains wedge B. Equivalent to but faster thangetWedgeRelation() == WEDGE_PROPERLY_CONTAINS || WEDGE_EQUALS
.
-
-
Constructor Summary
Constructors Constructor Description WedgeContains()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
test(S2Point a0, S2Point ab1, S2Point a2, S2Point b0, S2Point b2)
Given two edge chains, this function returns +1 if the region to the left of A contains the region to the left of B, and 0 otherwise.
-