You can also do this: import javax.vecmath.*;
Point3d P1(x1, y1, z1); Point3d P2(x2, y2, z2); double length = P1.distance(P2); -----Original Message----- From: Nick Stark [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 10:06 AM To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] length question length = sqrt ( (x2-x1)^2 + (y2-y1)^2 + (z2-z1)^2) What is the length between 2 points? Let's assume P1(x1,y1,z1) and P2(x2,y2,z2) What is the (P1P2)=? =========================================================================== 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". =========================================================================== 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".
