pub fn get_snapped_scale(scale: Vect) -> Vect
We restrict the scaling increment to 1.0e-4, to avoid numerical jitter due to the extraction of scaling factor from the GlobalTransform matrix.