mirror of
https://github.com/g-truc/glm.git
synced 2024-11-13 22:01:46 +00:00
22 lines
420 B
C++
22 lines
420 B
C++
#define GLM_ENABLE_EXPERIMENTAL
|
|
#include <glm/gtx/matrix_decompose.hpp>
|
|
|
|
int main()
|
|
{
|
|
int Error(0);
|
|
|
|
glm::mat4 Matrix(1);
|
|
|
|
glm::vec3 Scale;
|
|
glm::quat Orientation;
|
|
glm::vec3 Translation;
|
|
glm::vec3 Skew(1);
|
|
glm::vec4 Perspective(1);
|
|
|
|
glm::decompose(Matrix, Scale, Orientation, Translation, Skew, Perspective);
|
|
|
|
glm::mat4 Out = glm::recompose(Scale, Orientation, Translation, Skew, Perspective);
|
|
|
|
return Error;
|
|
}
|