for a point P1 represented as a 3-tuple (x1,y1,z1) or
(-3,2,5)
and another point P2 represented as a 3-tuple
(x2,y2,z2) or (5,-6,2)
the distance from P1 to P2:
for you example this is:
squareroot{ (x1-x2)^2 + (y1-y2)^2 + (z1-z2)^2}
squareroot{ (-3-5)^2 + (2-(-6))^2 + (5-2)^2}
squareroot{ (-8)^2 + (8)^2 + (3)^2}
squareroot{ 64 + 64 + 9}
squareroot{ 137}
11.7
or 11 in integer math
Charles
--- "Michael P. McCutcheon" <[EMAIL PROTECTED]>
wrote:
> I think there is a simple mathematical formula for
> getting the distence between two points...
>
> i.e.
>
> -3,2,5 and 5,-6,2
>
> Does anyone remember what this is?
>
> Mike
>
>
=====
email me at either
[EMAIL PROTECTED]
or
[EMAIL PROTECTED]
Winston Churchill: "Never give up--never give up--never EVER give up!"
__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".