S2Polyline.project

Given a point, returns a point on the polyline that is closest to the given point. See GetSuffix() for the meaning of "next_vertex", which is chosen here w.r.t. the projected point as opposed to the interpolated point in GetSuffix().

The polyline must be non-empty.

class S2Polyline
const
project

Meta