Questions tagged [xna-math-library]

A cross platform math library for Windows and Xbox 360. Part of DirectX. (And, confusingly enough, not part of Microsoft's managed game platform, XNA.)

20 questions
0
votes
2 answers

binary '-' : 'DirectX::XMVECTOR' does not define this operator or a conversion (migrating from xnamath to DirectXMath is not so easy)

I have some DirectX C++ code that uses xnamath.h. I wanted to migrate to "brand new" DirectXMath, so I've changed: #include to #include I have also added DirectX namespace, e.g.: DirectX::XMFLOAT3 vector; I was ready…
PolGraphic
  • 2,941
  • 9
  • 39
  • 100
0
votes
1 answer

Collide with angle object

I'm developing a mirror for lazer beam(Ball sprite). There I'm trying to redirect the laze beam according to the ration degree of the mirror(Rectangle). How can I collide the ball to the correct angle if the colliding object is with some angle(45…
dit1679
  • 74
  • 1
  • 12
0
votes
1 answer

Converting glm::mat4 to XMFLOAT4X4

I want to create an initial transform matrix from an orientation quaternion and a position vector. My initial matrix is in glm format, but I want toconvert the glm matrix to an XMFLOAT4X4 matrix. glm::mat4 glm_mWorld=…
fishfood
  • 3,442
  • 4
  • 24
  • 32
0
votes
1 answer

Stack Allocated Objects Optimized Away With XNAMATH

I have recently begun profiling and optimizing a DirectX 11 application that has been historically developed using the x64 platform configuration. After switching over to x86 to test behavior when using extended instruction sets, I began to notice…
Evan
  • 269
  • 1
  • 2
  • 11
0
votes
2 answers

Using XNA Math in a DLL Class

I'm having a problem in using XNA Math in a DLL I'm creating. I have a class that is in a DLL and is going to be exported. It has a member variable of type XMVECTOR. In the class constructor, I try to initialize the XMVECTOR. I get a Access…
l3utterfly
  • 1,656
  • 4
  • 28
  • 50
1
2