VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Taylor Series VS Sqr() Distance Testing (2D & 3D) (UPDATE)

James Dougherty  (22 Submissions)   Games   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

Thanks to Robert Rayment the VB version of TaylorDistance3D works right now.
This is another way to test for distance if you don't like to use the Sqr() Function. Its the Taylor/Maclaurin Series. The only problem is theres a Max Error of 3.5% in 2D and a Max error of 8.0% in 3D. So if you need exact accuracy don't use this. This can also be found in Andre LaMothe's Book. "Tricks Of The Windows Game Programming Gurus" Enjoy. -James-

Rate Taylor Series VS Sqr() Distance Testing (2D & 3D) (UPDATE) (3(3 Vote))

Download Taylor Series VS Sqr() Distance Testing (2D & 3D) (UPDATE)

Taylor Series VS Sqr() Distance Testing (2D & 3D) (UPDATE) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters