static S2Point |
S2Point.add(S2Point p1,
S2Point p2) |
|
static double |
S2.angle(S2Point a,
S2Point b,
S2Point c) |
Return the angle at the vertex B in the triangle ABC.
|
double |
S2Point.angle(S2Point va) |
Return the angle between two vectors in radians
|
static boolean |
S2.approxEquals(S2Point a,
S2Point b) |
|
static boolean |
S2.approxEquals(S2Point a,
S2Point b,
double maxError) |
Return true if two points are within the given distance of each other
(mainly useful for testing).
|
int |
S2Point.compareTo(S2Point other) |
|
static S2Point |
S2Point.crossProd(S2Point p1,
S2Point p2) |
|
static S2Point |
S2Point.div(S2Point p,
double m) |
|
double |
S2Point.dotProd(S2Point that) |
|
static S2Point |
S2Point.fabs(S2Point p) |
|
static R2Vector |
S2Projections.faceXyzToUv(int face,
S2Point p) |
|
static S2CellId |
S2CellId.fromPoint(S2Point p) |
Return the leaf cell containing the given point (a direction vector, not
necessarily unit length).
|
static double |
S2.girardArea(S2Point a,
S2Point b,
S2Point c) |
Return the area of the triangle computed using Girard's formula.
|
static boolean |
S2.isUnitLength(S2Point p) |
Return true if the given point is approximately unit length (this is mainly
useful for assertions).
|
static S1Angle |
S2LatLng.latitude(S2Point p) |
|
boolean |
S2Point.lessThan(S2Point vb) |
|
static S1Angle |
S2LatLng.longitude(S2Point p) |
|
static S2Point |
S2Point.minus(S2Point p1,
S2Point p2) |
|
static S2Point |
S2Point.mul(S2Point p,
double m) |
|
static S2Point |
S2Point.neg(S2Point p) |
|
static S2Point |
S2Point.normalize(S2Point p) |
|
static boolean |
S2.orderedCCW(S2Point a,
S2Point b,
S2Point c,
S2Point o) |
Return true if the edges OA, OB, and OC are encountered in that order while
sweeping CCW around the point O.
|
static S2Point |
S2.ortho(S2Point a) |
Return a unit-length vector that is orthogonal to "a".
|
static S2Point |
S2.planarCentroid(S2Point a,
S2Point b,
S2Point c) |
Return the centroid of the planar triangle ABC.
|
static int |
S2.robustCCW(S2Point a,
S2Point b,
S2Point c) |
WARNING! This requires arbitrary precision arithmetic to be truly robust.
|
static int |
S2.robustCCW(S2Point a,
S2Point b,
S2Point c,
S2Point aCrossB) |
A more efficient version of RobustCCW that allows the precomputed
cross-product of A and B to be specified.
|
static S2Point |
S2.robustCrossProd(S2Point a,
S2Point b) |
Return a vector "c" that is orthogonal to the given unit-length vectors "a"
and "b".
|
static double |
S2.signedArea(S2Point a,
S2Point b,
S2Point c) |
Like Area(), but returns a positive value for counterclockwise triangles
and a negative value otherwise.
|
static boolean |
S2.simpleCCW(S2Point a,
S2Point b,
S2Point c) |
Return true if the points A, B, C are strictly counterclockwise.
|
static boolean |
S2.simpleCrossing(S2Point a,
S2Point b,
S2Point c,
S2Point d) |
Return true if edge AB crosses CD at a point that is interior to both
edges.
|
static S2Point |
S2Point.sub(S2Point p1,
S2Point p2) |
|
static S2Point |
S2.trueCentroid(S2Point a,
S2Point b,
S2Point c) |
Returns the true centroid of the spherical triangle ABC multiplied by the
signed area of spherical triangle ABC.
|
static double |
S2.turnAngle(S2Point a,
S2Point b,
S2Point c) |
Return the exterior angle at the vertex B in the triangle ABC.
|
static R2Vector |
S2Projections.validFaceXyzToUv(int face,
S2Point p) |
|
static int |
S2Projections.xyzToFace(S2Point p) |
|