From: Phillip Gawlowski Date: 2008-03-31T19:03:13+09:00 Subject: Re: Is it me or Math::sqrt? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Peter Hickman wrote: | | If my reading is correct the distances should be different. I am not | saying that the reported distances are correct only that they should be | different. Take the x axis for example: | | (0 - 16) * (0 - 16) = 256 | (1 - 15) * (1 - 15) = 196 | | What you probably meant was: | | actor1 = Gondor::AI::Actor.new(:x => 0,:y => 0,:z => 0) | actor2 = Gondor::AI::Actor.new(:x => 15, :y => 15, :z => 15) | | should be the same distance as: | | actor1 = Gondor::AI::Actor.new(:x => 1,:y => 1,:z => 1) | actor2 = Gondor::AI::Actor.new(:x => 16, :y => 16, :z => 16) D'oh. Forrest, meet trees. Yes, that is what I should check on, and nothing else. Thank you for that reality check. - --Phillip Gawlowski -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfwtuMACgkQbtAgaoJTgL+UygCfQ1G2niZu4G60imSxX5jfPIIP TbYAn01cHltyBoe/Y3djzHiHCmDwSYGs =8QBe -----END PGP SIGNATURE-----