public final class S2 extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
S2.Metric |
| Modifier and Type | Field and Description |
|---|---|
static int |
INVERT_MASK |
static double |
M_1_PI |
static double |
M_E |
static double |
M_PI |
static double |
M_PI_2 |
static double |
M_PI_4 |
static double |
M_SQRT2 |
static int |
SWAP_MASK |
| Modifier and Type | Method and Description |
|---|---|
static double |
angle(S2Point a,
S2Point b,
S2Point c) |
static boolean |
approxEquals(double a,
double b) |
static boolean |
approxEquals(double a,
double b,
double maxError) |
static boolean |
approxEquals(S2Point a,
S2Point b) |
static boolean |
approxEquals(S2Point a,
S2Point b,
double maxError) |
static double |
girardArea(S2Point a,
S2Point b,
S2Point c) |
static int |
ijToPos(int orientation,
int ijIndex) |
static boolean |
isUnitLength(S2Point p) |
static boolean |
orderedCCW(S2Point a,
S2Point b,
S2Point c,
S2Point o) |
static S2Point |
origin() |
static S2Point |
ortho(S2Point a) |
static int |
planarCCW(R2Vector a,
R2Vector b) |
static S2Point |
planarCentroid(S2Point a,
S2Point b,
S2Point c) |
static int |
planarOrderedCCW(R2Vector a,
R2Vector b,
R2Vector c) |
static int |
posToIJ(int orientation,
int position) |
static int |
posToOrientation(int position) |
static int |
robustCCW(S2Point a,
S2Point b,
S2Point c) |
static int |
robustCCW(S2Point a,
S2Point b,
S2Point c,
S2Point aCrossB) |
static S2Point |
robustCrossProd(S2Point a,
S2Point b) |
static double |
signedArea(S2Point a,
S2Point b,
S2Point c) |
static boolean |
simpleCCW(S2Point a,
S2Point b,
S2Point c) |
static boolean |
simpleCrossing(S2Point a,
S2Point b,
S2Point c,
S2Point d) |
static S2Point |
trueCentroid(S2Point a,
S2Point b,
S2Point c) |
static double |
turnAngle(S2Point a,
S2Point b,
S2Point c) |
public static final double M_PI
public static final double M_1_PI
public static final double M_PI_2
public static final double M_PI_4
public static final double M_SQRT2
public static final double M_E
public static final int SWAP_MASK
public static final int INVERT_MASK
public static int posToOrientation(int position)
public static int posToIJ(int orientation,
int position)
public static final int ijToPos(int orientation,
int ijIndex)
public static S2Point origin()
public static boolean isUnitLength(S2Point p)
public static boolean approxEquals(double a,
double b,
double maxError)
public static boolean approxEquals(double a,
double b)
Copyright © 2017. All rights reserved.