Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: calculating an angle between a point and a vector (kind of)
Replies: 2   Last Post: Jun 18, 2013 9:26 AM

 Search Thread: Advanced Search

 Messages: [ Previous | Next ] Topics: [ Previous | Next ]
 Narasimham Posts: 359 Registered: 9/16/06
Re: calculating an angle between a point and a vector (kind of)
Posted: Jun 12, 2013 2:48 PM
 Plain Text Reply

> Everythjing is in 2d.
>
> I have two points (p1 and p2). I know ther current
> x,y. One of those points (p1) has a bearing so on the
> grid it is more like a vector. I need to calculate
> the angle between the vector and the line p1p2.

A = x i + y j ; P = (x2 - x1) i + (y2 - y1) j

ArcCos(dot prod)/abs(A)/abs(P)

Narasimham

Date Subject Author
6/11/13 maciek
6/12/13 Narasimham
6/18/13 maciek

© The Math Forum at NCTM 1994-2018. All Rights Reserved.