bevy_math::ops

Function exp_m1

Source
pub fn exp_m1(x: f32) -> f32
Available on non-crate feature libm only.
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.