Skip to content

Optimised vector and quaternion normalisations adding fast inverse square root

Rafał Mikrut requested to merge github/fork/puthre/fast_inv_sqrt2 into master

Created by: puthre

I've added Math::fast_inv_sqrt that computes 1/sqrt(x) almost 5 times faster and modified the Vector2, Vector3 and Quat classes to make use of it for normalization. Normalizations should be now A LOT faster. See https://en.wikipedia.org/wiki/Fast_inverse_square_root

Merge request reports