Function S2Builder.SnapFunction.snapPoint

Returns a candidate snap site for the given point. The final vertex locations are a subset of the snap sites returned by this function (spaced at least "min_vertex_separation" apart).

abstract s2.util.math.vector.Vector!(double,3L) snapPoint (
  in const(s2.util.math.vector.Vector!(double,3L)) point
) const;

The only requirement is that SnapPoint(x) must return a point whose distance from "x" is no greater than "snap_radius".