469,907 Members | 2,214 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,907 developers. It's quick & easy.

Coordinate space manipulation

Hi, wondering if anyone can help me with this. I'm trying to do some
math for a reasonably simple bit of 3d math.

Given the following.

A 3d vector pointing in an arbitrary direction, call it 'forward',
that defines the target Z-axis, and a rotation around that vector,
'roll', which defines the target Y axis.

These define the 'target' coordinate system.

Given those two things, I need to be able to take a point relative to
the origin in normal cooridantes (e.g. <0,0,1is 'forward', the
vector defined by roll points at <0,1,0>, although unit-length isn't a
given here), and translate that into the target coordinate system.

Any suggestions on how to do this?
Jul 7 '08 #1
1 1351
Tyler Eaves wrote:
Hi, wondering if anyone can help me with this. I'm trying to do some
math for a reasonably simple bit of 3d math.

Given the following.

A 3d vector pointing in an arbitrary direction, call it 'forward',
that defines the target Z-axis, and a rotation around that vector,
'roll', which defines the target Y axis.

These define the 'target' coordinate system.

Given those two things, I need to be able to take a point relative to
the origin in normal cooridantes (e.g. <0,0,1is 'forward', the
vector defined by roll points at <0,1,0>, although unit-length isn't a
given here), and translate that into the target coordinate system.

Any suggestions on how to do this?
Uh... Do you have a C++ *language* question? Have you tried a newsgroup
in the 'sci.math' hierarchy first?

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jul 7 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Grumble | last post: by
8 posts views Thread by Piotre Ugrumov | last post: by
1 post views Thread by OtisUsenet | last post: by
reply views Thread by peradino | last post: by
reply views Thread by herpers | last post: by
9 posts views Thread by Eric.Gabrielson | last post: by
5 posts views Thread by Johny | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.