rescale function

Simple linear rescaling of positions