Package com.google.common.geometry
Class S2Predicates.CompareEdgeDirections
java.lang.Object
com.google.common.geometry.S2Predicates.CompareEdgeDirections
- Enclosing class:
S2Predicates
A test to compare whether two edges are closer to proceeding in the same direction or in
opposite directions around the sphere, essentially signum((AxB)x(CxD)). Returns -1, 0, or +1
according to whether the normal of edge AB has negative, zero, or positive dot product with the
normal of edge CD, and may return 0 if the relation is indeterminate.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
Returns a BigDecimal-based test result.static int
Returns a BigDecimal-based test result.static int
Returns a cosine-based test result.
-
Constructor Details
-
CompareEdgeDirections
private CompareEdgeDirections()No instantiation.
-
-
Method Details
-
triage
Returns a cosine-based test result. Fast but has a wide margin of uncertainty. -
exact
Returns a BigDecimal-based test result. Exact but very slow. -
exact
Returns a BigDecimal-based test result. Exact but very slow.
-