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
Returns true if wedge A contains wedge B. Equivalent to but faster than
getWedgeRelation() == WEDGE_PROPERLY_CONTAINS || WEDGE_EQUALS
.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
WedgeContains
public WedgeContains()
-
-
Method Details
-
test
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.- Specified by:
test
in interfaceS2EdgeUtil.WedgeProcessor
-