Sorts stops by offset and rescales offsets into [0, 1] in
place. Writes the original (min, max) to min / max so the
caller can shift the gradient geometry (axis endpoints for
linear, centers+radii for radial, start+end angles for sweep)
to keep the rendered gradient visually unchanged after the
rescale. Empty input is safe: both out-parameters set to 0.
Sorts
stopsby offset and rescales offsets into [0, 1] in place. Writes the original (min, max) tomin/maxso the caller can shift the gradient geometry (axis endpoints for linear, centers+radii for radial, start+end angles for sweep) to keep the rendered gradient visually unchanged after the rescale. Empty input is safe: both out-parameters set to 0.