microsoft / DirectXMath

DirectXMath is an all inline SIMD C++ linear algebra library for use in games and graphics apps
https://walbourn.github.io/introducing-directxmath/
MIT License
1.51k stars 231 forks source link

Comment does not match with actual code? #145

Closed zznewclear13 closed 1 year ago

zznewclear13 commented 2 years ago

Our left handed perspective matrix should be like this:

But the comments in DirectXMathMatrix.inl#L2518-L2521 seem to indicate the projection matrix is:

walbourn commented 2 years ago

The comments do look a little out of place...

walbourn commented 1 year ago

Fixed https://github.com/microsoft/DirectXMath/commit/0fc79cd30994230b4d59ed0397247be23bfa7602