Simeon H.K. Fitch wrote: > Given two points: P1 = (x1, y1, z1) and P2 = (x2, y2, z2) > > Distance is: > > double d = Math.sqrt(x1*x2 + y1*y2 + z1*z2)
Well, what is the distance between (0,0,0) and (1,1,1) then ? Or (-1,-1,-1) and (1,1,1) ? :) You need to multiply differences between coordinates, not coordinates themselves. Artur =========================================================================== 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".