Function S2Shape.getReferencePoint

Returns an arbitrary point P along with a boolean indicating whether P is contained by the shape. (The boolean value must be false for shapes that do not have an interior.)

abstract S2Shape.ReferencePoint getReferencePoint() const;

This ReferencePoint may then be used to compute the containment of other points by counting edge crossings.