VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Tue Jan 11 2005 - 19:05:43 CST
- Next message: Dr. Daniel James White PhD: "Re: vmd not starting up on Fedora core 3 linux , nVidia quadro 980 XGL, nVidia 6629 driver"
- Previous message: Ekta Khurana: "angle between two vectors"
- In reply to: Ekta Khurana: "angle between two vectors"
- Next in thread: Luis Gracia: "Re: angle between two vectors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Ekta,
To use functions like acos(), you need to use Tcl's 'expr' routine,
like this:
set angle [expr acos([vecdot {1 0 0} {0 1 0}])]
John Stone
vmd_at_ks.uiuc.edu
On Tue, Jan 11, 2005 at 07:56:54PM -0500, Ekta Khurana wrote:
> Hello, I want to find out the angle between two vectors, which can be
> found using the dot product and acos. I know I can use vecdot to find dot
> product in TCL. Could someone tell me what command I can use for acosine.
> Thanks,
> Ekta
-- NIH Resource for Macromolecular Modeling and Bioinformatics Beckman Institute for Advanced Science and Technology University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801 Email: johns_at_ks.uiuc.edu Phone: 217-244-3349 WWW: http://www.ks.uiuc.edu/~johns/ Fax: 217-244-6078
- Next message: Dr. Daniel James White PhD: "Re: vmd not starting up on Fedora core 3 linux , nVidia quadro 980 XGL, nVidia 6629 driver"
- Previous message: Ekta Khurana: "angle between two vectors"
- In reply to: Ekta Khurana: "angle between two vectors"
- Next in thread: Luis Gracia: "Re: angle between two vectors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]