Brad,

As Artur stated, use the square root of the sum of the squares to get
distance.  If I remember right when I was testing I found the
point.distance routines to be MUCH slower than calculating it myself.

- John Wright
Starfire Research

Brad Christiansen wrote:
>
> Hi,
>
> What is the best way to get the distance between two points?
>
> ie I want the straight line distance between (0.3, 3, -5) and (6, -3.54,
> 75)
>
> Cheers,
>
> Brad
>
> ----------------------------------------------------------------------------
> This Email may contain confidential and/or privileged information and is
> intended solely for the addressee(s) named. If you have received this
> information in error, or are advised that you have been posted this Email by
> accident, please notify the sender by return Email, do not redistribute it,
> delete the Email and keep no copies.
> ----------------------------------------------------------------------------
>
> ===========================================================================
> 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".

Reply via email to