bevy_math::ops

Function exp_m1

source
pub fn exp_m1(x: f32) -> f32
Expand description

Returns e^(self) - 1 in a way that is accurate even if the number is close to zero.

Precision is specified when the libm feature is enabled.