Snaps vertices to points whose (lat, lng) coordinates are integers after
converting to degrees and multiplying by 10 raised to the given exponent.
For example, (exponent == 7) yields E7 coordinates. As a side effect,
this method also resets "snap_radius" to the minimum value allowed for
this exponent:
Snaps vertices to points whose (lat, lng) coordinates are integers after converting to degrees and multiplying by 10 raised to the given exponent. For example, (exponent == 7) yields E7 coordinates. As a side effect, this method also resets "snap_radius" to the minimum value allowed for this exponent:
set_snap_radius(MinSnapRadiusForExponent(exponent))
This means that if you want to use a larger snap radius than the minimum, you must call set_snap_radius() *after* calling set_exponent().
REQUIRES: kMinExponent <= exponent <= kMaxExponent