map coords to [0.0,1.0] range