project

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.

  1. S2Point project(S2Point x, S2Point a, S2Point b)
  2. S2Point project(S2Point x, S2Point a, S2Point b, Vector3_d a_cross_b)

Meta