Path: news.mathworks.com!not-for-mail
From: "shah baba" <shahbaba@gmx.de>
Newsgroups: comp.soft-sys.matlab
Subject: angle between two vectors
Date: Fri, 10 Jun 2011 14:37:04 +0000 (UTC)
Organization: uni hannover
Lines: 8
Message-ID: <ista6g$okq$1@newscl01ah.mathworks.com>
Reply-To: "shah baba" <shahbaba@gmx.de>
NNTP-Posting-Host: www-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1307716624 25242 172.30.248.47 (10 Jun 2011 14:37:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 10 Jun 2011 14:37:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1305056
Xref: news.mathworks.com comp.soft-sys.matlab:731302

hi
I have a vector n1 of pt1[x1,y1,z1] from origin [0,0,0] and n2 of p2[x2,y2,z2]from origin [0,0,0].
The angle between n1 and n2
                            n1 . n2           
        cos q  =    ---------------------             
                         ||n1|| ||n2|| 
How can I decompose angle (q) it into  its three components(alpha, beta gamma) 
regards,