Comments (1)
The function name indicates the order of rotation which is roll, then pitch, then yaw. The parameter order itself is x-axis, y-axis, z-axis which makes a bit more sense with XMMatrixRotationRollPitchYawFromVector
.
This is also true of the
XMQuaternionRotationRollPitchYaw
function, as well asXMQuaternionRotationRollPitchYawFromVector
.
The original D3DXMath function D3DXMatrixRotationYawPitchRoll
used parameter order of 'yaw', 'pitch', 'roll' but the actual order of the rotations was roll, then pitch, then yaw based on the convention of matrix notation. So, I'd argue the DirectXMath naming convention is probably a bit more consistent.
from directxmath.
Related Issues (20)
- Souce Code Annotation Language defines (sal.h) conflict with GCC <utility> header code HOT 2
- DirectXMath Matrix Stack should have option to maintain inverse
- Incorrect RH Orthographic Matrix HOT 3
- Comment does not match with actual code? HOT 2
- C++20 spaceship operator for XMFLOAT2, XMFLOAT3, etc.
- IntelLLVM Compiler Validation
- DirectXMath.h not self-sufficient on g++ 11.2 (Ubuntu) HOT 2
- More constexpr usage in DirectXMath HOT 1
- unexpected results with clang-cl /fp:fast in release mode HOT 6
- ARM-NEON implementation generates warnings if using /Zc:arm64-aliased-neon-types- with MSVC HOT 2
- __cpuid and clang-cl HOT 3
- Add matrix functions for generating infinite reversed-z perspective projection matrix HOT 4
- Readme points to unmaintained sal.h
- DirectXPackedVector.h/.inl Linux compilation warnings (Clang and GCC) HOT 12
- Comment in BoundingFrustum::CreateFromMatrix is incorrect
- Proposal to add a vector projection function HOT 2
- Question about test case. HOT 1
- Project version is inconsistent with release note HOT 3
- -Wmissing-braces when compiling with Clang for MINGW
- Errors from the Testsuite GCC 13.2.0 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from directxmath.