(x1 - x2 ) = x // your a
(y1 - y2) = y // your b
if ( x < 0) then x * (-1)
if ( y < 0) then y * (-1)
x^2 + y^2 = z^2 // z is your c distance between pixels this ^2 on power of two
then get square root
Last edited by peter_budo; Nov 17th, 2006 at 7:39 am.
(x1 - x2 ) = x // your a
(y1 - y2) = y // your b
if ( x < 0) then x * (-1)
if ( y < 0) then y * (-1)
x^2 + y^2 = z^2 // z is your c distance between pixels this ^2 on power of two
then get square root
lleave out the multiplying with -1 : x^2 is eual to (-x)^2
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.