Expand description

quake-inverse-sqrt

This crate implements a trait for all numeric base types to give them the ability to compute their own inverse square root using the infamous Quake III algorithm.

The result is approximated in favour of speed of execution.

Example

let num: f32 = 4.0.fast_inverse_sqrt();
assert!(num > 0.49 && num < 0.51);

Enums

Traits

A trait to implement fast inverse square root for a variety of types