Jump to content


- - - - -

Finding the co-ordinates of other end of the line


1 reply to this topic

#1 sunnarine

    New Member

  • Members
  • Pip
  • 7 posts

Posted 29 March 2011 - 11:10 PM

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

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 5311 posts
  • LocationSanta Clara, CA

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)
reedbeta.com - developer blog, OpenGL demos, and other projects





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users