Finding the co-ordinates of other end of the line

Fc0905e47ea74a57eb9af89fe911cb14
0
sunnarine 101 Mar 29, 2011 at 23:10

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

1 Reply

Please log in or register to post a reply.

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 167 Mar 30, 2011 at 00:53

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)