s2.s2edge_distances

Undocumented in source.

Members

Functions

alwaysUpdateMinDistance
bool alwaysUpdateMinDistance(S2Point x, S2Point a, S2Point b, S1ChordAngle min_dist)
Undocumented in source.
alwaysUpdateMinInteriorDistance
bool alwaysUpdateMinInteriorDistance(S2Point x, S2Point a, S2Point b, double xa2, double xb2, S1ChordAngle min_dist)

/////////////// Implementation details follow ////////////////////

getDistance
S1Angle getDistance(S2Point x, S2Point a, S2Point b)

////////////////////////////////////////////////////////////////////////// //////////// (point, edge) functions ///////////////

getUpdateMinDistanceMaxError
double getUpdateMinDistanceMaxError(S1ChordAngle dist)
Undocumented in source. Be warned that the author may not have intended to support it.
interpolate
S2Point interpolate(double t, S2Point a, S2Point b)

////////////////////////////////////////////////////////////////////////// //////////// (point along edge) functions ///////////////

interpolateAtDistance
S2Point interpolateAtDistance(S1Angle ax_angle, S2Point a, S2Point b)
Undocumented in source.
isDistanceLess
bool isDistanceLess(S2Point x, S2Point a, S2Point b, S1ChordAngle limit)
Undocumented in source. Be warned that the author may not have intended to support it.
isEdgeBNearEdgeA
bool isEdgeBNearEdgeA(S2Point a0, S2Point a1, S2Point b0, S2Point b1, S1Angle tolerance)
Undocumented in source.
project
S2Point project(S2Point x, S2Point a, S2Point b)
Undocumented in source. Be warned that the author may not have intended to support it.
project
S2Point project(S2Point x, S2Point a, S2Point b, Vector3_d a_cross_b)

A slightly more efficient version of Project() where the cross product of the two endpoints has been precomputed. The cross product does not need to be normalized, but should be computed using S2::RobustCrossProd() for the most accurate results. Requires that x, a, and b have unit length.

updateEdgePairMinDistance
bool updateEdgePairMinDistance(S2Point a0, S2Point a1, S2Point b0, S2Point b1, S1ChordAngle min_dist)

////////////////////////////////////////////////////////////////////////// //////////// (edge, edge) functions ///////////////

updateMaxDistance
bool updateMaxDistance(S2Point x, S2Point a, S2Point b, S1ChordAngle max_dist)
Undocumented in source. Be warned that the author may not have intended to support it.
updateMinDistance
bool updateMinDistance(S2Point x, S2Point a, S2Point b, S1ChordAngle min_dist)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta