fixed angle scaling to prevent NaN at large distances