By the way, there are ways to make quick and dirty approximations of that length that can be considerably faster in C/C++, but when I tried the same approximations in VB.NET, I got no performance boost, so not only is the Pythagorean Theorem the way to get the precise value, it is also, at least in VB.NET, the fastest way to get a good value, so you might as well just use it.