S2Polyline.isOnRight

Returns true if the point given is on the right hand side of the polyline, using a naive definition of "right-hand-sideness" where the point is on the RHS of the polyline iff the point is on the RHS of the line segment in the polyline which it is closest to.

The polyline must have at least 2 vertices.

class S2Polyline
const
bool
isOnRight

Meta