VECTORLIST - The Mailing List For The Technical Discussion of Vector-Based Arcade Games

October_1999
Re: Programming question


From: Christopher X. Candreva ( )
Date: Wed Oct 27 1999 - 17:29:13 CDT


On Wed, 27 Oct 1999, Rodger Boots wrote:

> On a unit I used to be on at my Real Job they just did this:
> Take the smaller of xlength or ylength, multiply it time 3, divide
> by 2, and add the result to the larger of xlength or ylength. The
> result is a close approximation of the square root of the sum of
> the squares.

Are you sure about that ?

For say 2 and 3:
Sqrt (2^2 + 3^2) = sqrt(13) = 3.6

( (2*3) / 2 ) + 3 = 6

Or am I missing something ?

-Chris

==========================================================
Chris Candreva -- -- (914) 967-7816
WestNet Internet Services of Westchester
http://www.westnet.com/


HOME