Original Post
Hi In HLSL you can use the Vector2/3/4 class to access each element (e.g.Vector3.xyz or Vector3.xxx Vector3.xy) is there any way of replicating this behaviour using the D3DXVECTOR3 class. I would like to use something like D3DXVECTOR3 _3D = D3DXVECOTR3(0.5f,0.0123f,1.5f); D3DXVECTOR3 _2D = D3DXVECTOR2(_3D.xy); instead of D3DXVECTOR3 _3D = D3DXVECOTR3(0.5f,0.0123f,1.5f); D3DXVECTOR3 _2D = D3DXVECTOR2(_3D.x,_3D.y); i know its only a small change in this case but i can see it being useful. Im using C++ and DirectX 9 btw.