Given a point P(x1,y1,z1) in 3D space and its orientation what would be the co-ordinates of other end of the line of length L, if it starts at P(x1,y1,z1). The rotation of point P(x1,y1,z1) takes place about its local axis.
Kindly help
Sundar
Finding the co-ordinates of other end of the line
Started by sunnarine, Mar 29 2011 11:10 PM
1 reply to this topic
#1
Posted 29 March 2011 - 11:10 PM
#2
Posted 30 March 2011 - 12:53 AM
Kindly read the links I gave on your previous post, as it is essentially the same question.
You'll need to construct a rotation matrix for the orientation and then do something like:
P2 = P1 + mat * (0, 0, L)
You'll need to construct a rotation matrix for the orientation and then do something like:
P2 = P1 + mat * (0, 0, L)
reedbeta.com - developer blog, OpenGL demos, and other projects
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











