Path: news.mathworks.com!not-for-mail
From: "Natalie Sin Hwee " <sin.ng09@imperial.ac.uk>
Newsgroups: comp.soft-sys.matlab
Subject: Finding 3D Angle
Date: Mon, 9 Aug 2010 10:20:09 +0000 (UTC)
Organization: Imperial College
Lines: 13
Message-ID: <i3okop$9n9$1@fred.mathworks.com>
Reply-To: "Natalie Sin Hwee " <sin.ng09@imperial.ac.uk>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1281349209 9961 172.30.248.38 (9 Aug 2010 10:20:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 9 Aug 2010 10:20:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2069448
Xref: news.mathworks.com comp.soft-sys.matlab:660259

Dear Mathworks,

I have two vectors in a 3D space. 
By using:
 theta(bb,cc) = atan2(norm(cross(v1,v2)) , dot(v1,v2) );
but it does not give me information on directionality of the angle Theta.

Looking at cart2sph/pol,

How can i find the theta/phi and r between two 3dimensional vectors?

Thank you
Natalie