Sign in to follow this  
skow

Distance and inverse sqrt

Recommended Posts

I am looking for the fastest method to calculate my distance. I have a program that tests different sqrt functions out there. I am finding many fast inverse sqrt functions, is there any way to utilize these for distance other than dividing 1.0f by the result?

Share this post


Link to post
Share on other sites
Quote:
Original post by skow
I am looking for the fastest method to calculate my distance. I have a program that tests different sqrt functions out there. I am finding many fast inverse sqrt functions, is there any way to utilize these for distance other than dividing 1.0f by the result?


sqrt(x) = x*sqrtInverse(x)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this