Maths Query on 2 vectors and its angle

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
smartwhiz
Posts: 120
Joined: Wed Jan 14, 2004 6:03 pm
Location: India

Maths Query on 2 vectors and its angle

Post by smartwhiz »

Image

i know (x1,y1), (x2,y2) and the angle... how can i find (x3,y3)... help wud be appreciated :)

keepin in mind that the distance between the (x1,y1) and (x2,y2) is equal to (x2,y2) and (x3,y3)
Thanks and With Regards
Smartwhiz
xray
Posts: 231
Joined: Fri Feb 02, 2007 1:06 pm
Location: Germany, Munich
Contact:

Post by xray »

What about google? Google find alot about this terms.

for example:

http://distance-ed.math.tamu.edu/Math64 ... node4.html
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Code: Select all

core::vector2df vector(x1, y1);
vector.rotateBy(angle, vector2df(x2, y2)); // where angle is anticlockwise in degrees
// vector is now == x3, y3
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
smartwhiz
Posts: 120
Joined: Wed Jan 14, 2004 6:03 pm
Location: India

Post by smartwhiz »

thanks buddy.. i got that!
Thanks and With Regards
Smartwhiz
Post Reply