Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

using XMFLOAT2 in operators

$
0
0

Hi ther.

I'm converting D3DX (math) old code, I have managed to convert some successfully, but I ran into a problem!
As we see in the following code...

float time , g_PerlinSpeed;
XMFLOAT2 g_WindDir;
XMFLOAT2 perlin_move = -g_WindDir * time * g_PerlinSpeed;

I can´t use an compare XMFLOAT2 with operator -g_WindDir,

Is there any way to use the same logic algorithm with XMFLOAT2?

Obs(XMFLOAT2 = old D3DXVECTOR2)...


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>