• Advertisement


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

What is the difference of the "D3DXVECTOR4" and "D3DXVECTOR3"

This topic is 5139 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

I''m not a DX user, but just from the names, I''d say D3DXVECTOR4 is a 4 element vector, and D3DXVECTOR3 is a 3 element vector. A 3 element vector typically is (x,y,z), while a 4 element vector typically has (x,y,z,w); or in the case of colors, (r,g,b) vs. (r,g,b,a).

For 3D math, transformations involving translation require a w coordinate (implicitly set to 1 in a 3 element vector) for correct matrix multiplication with a 4x4 matrix.

Blender--The Gimp--Python--Lua--SDL

Share this post

Link to post
Share on other sites

  • Advertisement