Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


3dVector to matrix

This topic is 5432 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Guest Anonymous Poster
You don''t turn a vector into a matrix. You use a transformation matrix to multiply by and return another 3dVector. You can concatanate several object space transformations into one matrix, thus optimizing the number of operations. Here is the translation transformation in object space (sometimes called local transformation space):
v = [x, y, z, 1]
M =
[1, 0, 0, 0]
[0, 1, 0, 0]
[0, 0, 1, 0]
v * M = v'' = [x + dx, y + dy, z + dz, 1]

Share this post

Link to post
Share on other sites
If it is possible to converted euler angles into a rotation matrix why i cant convert a vector into a matrix.

I was reading an article which was discussing to convert 3d velocity(airplane velocity) into a rotation matrix. So you can use it to transform Airplane geometry.

Also i heared about quaternion to do the job.

Share this post

Link to post
Share on other sites
You cant convert a vector into a matrix because a vector is a matrix.

[x y z] is a vector and a 1 row - 3 column matrix.

Thats all a vector is, a 1 row or 1 column matrix.

[edited by - Jingo on November 9, 2003 2:03:31 PM]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!