Trait iron_shapes::math::FastInvSqrt
source · [−]pub trait FastInvSqrt {
fn fast_invsqrt(x: Self) -> Self;
}
Expand description
Implement the fast approximate computation of ‘1/sqrt(x)’ for a type.
Required Methods
fn fast_invsqrt(x: Self) -> Self
fn fast_invsqrt(x: Self) -> Self
Fast approximate computation of 1/sqrt(x).
See: https://en.wikipedia.org/wiki/Fast_inverse_square_root And: http://www.lomont.org/papers/2003/InvSqrt.pdf