You have a zero length vector.
Mike
----- Original Message -----
From: "ramanathan v" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 16, 2002 2:32 PM
Subject: [JAVA3D] Want to get the angle between two coordinates (2 vector3d
point)


> Hi,
>
> I am trying to find the angle between the two vector3d
> objects and it gives me NaN. Am i doing something
> wrong. If anyone could help me that would be great.
> Sample ..this is what i am doing
>
>         Vector3d tt = new Vector3d(0,0,0);
>         Vector3d f = new Vector3d(0,10,0);
>
>         System.out.println(f.angle(tt));
>
>
> thanks,
> ram.
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Web Hosting - Let the expert host your site
> http://webhosting.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".

===========================================================================
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