From 8159f2bbafddb8f5f600dac245c974b04c741455 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Mon, 7 Jul 2025 00:26:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0rotatematrix.cpp=E8=8C=83?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 1 + math/RotateMatrix.cpp | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 math/RotateMatrix.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index b4d711b..c9144d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,6 +60,7 @@ cm_example_project("DataType" IDNameTest datatype/IDNameTest.cpp) #################################################################################################### cm_example_project("Math" OutputEpsilon math/OutputEpsilon.cpp) cm_example_project("Math" TransformBenchmark math/TransformBenchmark.cpp) +cm_example_project("Math" RotateMatrix math/RotateMatrix.cpp) #################################################################################################### cm_example_project("DataType/Collection" LifetimeTest datatype/collection/LifetimeTest.cpp) diff --git a/math/RotateMatrix.cpp b/math/RotateMatrix.cpp new file mode 100644 index 0000000..74c42c5 --- /dev/null +++ b/math/RotateMatrix.cpp @@ -0,0 +1,39 @@ +#include +#include +#include + +void PrintMatrix(const char *name,const glm::mat4 &m) +{ + std::cout<<"Matrix:"<