Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Angle between two Vectors

Subject: Angle between two Vectors

From: Marcelo Costa

Date: 7 Nov, 2012 13:32:08

Message: 1 of 3

I have a Cartesian (X, Y, Z) with 3 points ABC, and they intersect at point B, would like to know how do I calculate the angle of intersection of these vectors? Sorry for my English. =]

Subject: Angle between two Vectors

From: Nasser M. Abbasi

Date: 7 Nov, 2012 14:15:16

Message: 2 of 3

On 11/7/2012 7:32 AM, Marcelo Costa wrote:
> I have a Cartesian (X, Y, Z) with 3 points ABC, and they intersect at point B,
>would like to know how do I calculate the angle of intersection of these vectors?
>Sorry for my English. =]
>


http://www.wikihow.com/Find-the-Angle-Between-Two-Vectors

Subject: Angle between two Vectors

From: Roger Stafford

Date: 7 Nov, 2012 20:07:09

Message: 3 of 3

"Marcelo Costa" wrote in message <k7dnsn$c0o$1@newscl01ah.mathworks.com>...
> I have a Cartesian (X, Y, Z) with 3 points ABC, and they intersect at point B, would like to know how do I calculate the angle of intersection of these vectors? Sorry for my English. =]
- - - - - - - - - -
  Let A, B, and C each be a three-element vector containing the Cartesian coordinates for the three points. The interior angle at B of triangle ABC is given by:

 a = atan2(norm(cross(A-B,C-B)),dot(A-B,C-B));

It will be an angle in radians somewhere between 0 and pi.

Roger Stafford

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us