Comments (6)
Just to clarify, the 45
literal you are passing to XMQuaternionRotationRollPitchYaw
: The function takes radians, not degrees, so you are going to get something like 7 complete rotations plus a little...
If you do a rotation by XM_PI/4
(i.e. 45° expressed as radians), the answers match for MSVC, clang v15, /fp:fast, etc.
from directxmath.
oops, sorry for that...
but it is still there (and not just for specific angles)
does clang version make a difference?
my cli options: (and inherit from default)
/GS /W3 /Gy /Zi /O2 /fp:fast /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /WX- /Gd /Oi /MD /Fa"x64\Release\" /EHsc /nologo /Fo"x64\Release\" /Fp"x64\Release\Project1.pch" /diagnostics:column
(i'm not using any pch, though it does specify a name for it)
from directxmath.
2022-11-03.10-45-03.mp4
from directxmath.
Any use of /fp:fast
allows the compiler to deviate from IEEE-754 rules for floating-point, so it's not going to be consistent between compilers.
from directxmath.
You may also want to try the latest DirectXMath. Windows 10 SDK (19041) contains DirectXMath 3.14. You can get newer versions from GitHub, NuGet, vcpkg, or installing newer Windows SDKs.
from directxmath.
You may also want to try the latest DirectXMath. Windows 10 SDK (19041) contains DirectXMath 3.14. You can get newer versions from GitHub, NuGet, vcpkg, or installing newer Windows SDKs.
i tried ver3.17 through vcpkg, but it still not works unfortunately.
anyway, thank you very much
let's looking forward to a better collaboration between compilers in the future xD
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
- 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.