Jump to content

  • Log In with Google      Sign In   
  • Create Account

How To Perform Matrix Dot Product On D3Dx9?

  • You cannot reply to this topic
1 reply to this topic

#1 lucky6969b   Members   -  Reputation: 1081

Like
0Likes
Like

Posted Yesterday, 11:38 PM

http://www.mvps.org/DirectX/articles/math/dot/index.htm

 

Is it possible to do dot product on a vector with matrices in D3DX9?

 

I am trying to convert this project into C++ equivalence...

 

https://github.com/unr-arl/DubinsAirplane

 

In the python code

np.dot(rotz(pi/2), np.array([cos(anglstart), sin(anglstart), 0]).T)

It is trying to compute the dot product of a rotation matrix around z axis and dot with

a column vector...

 

https://msdn.microsoft.com/en-us/library/windows/desktop/bb205508(v=vs.85).aspx

 

The D3DXVec3Dot only works with dotting two vectors together?

 

Thanks

Jack


Edited by lucky6969b, Yesterday, 11:38 PM.


#2 cozzie   Members   -  Reputation: 4193

Like
0Likes
Like

Posted Today, 03:16 AM

Not 100% sure, but I think it's just a vector matrix multiplication (D3DXVec3TransformCoord). Which technically does a number of dot products to get the final result.

Otherwise maybe you have to extract a vector from one of the rows or columns and dot that with your vector.

Crealysm game & engine development: http://www.crealysm.com

Looking for a passionate, disciplined and structured producer? PM me






PARTNERS