Difference between revisions of "Talk:GetDistance - ObjectReference"
Jump to navigation
Jump to search
imported>Rasikko m |
imported>Rasikko m |
||
Line 1: | Line 1: | ||
While the Pythagorean Theorem for calculating distance between two points for a 3D coordinate plane will consistently return accurate results which agree with the return values of this function, if you attempt to code your own GetDistance function, you'll find that the return value is not accurate. There might be a problem with the Math.sqrt function, or perhaps a threading issue with too many Math.Pow calls. | |||
Revision as of 03:34, 29 May 2018
While the Pythagorean Theorem for calculating distance between two points for a 3D coordinate plane will consistently return accurate results which agree with the return values of this function, if you attempt to code your own GetDistance function, you'll find that the return value is not accurate. There might be a problem with the Math.sqrt function, or perhaps a threading issue with too many Math.Pow calls.