Create Matrix
mat3
(2024-02-01)
-
Type:
typedef mat3x3 mat3API - GLM: Types -
Passing a single scalar will initialize the diagonal. OpenGL Mathematics (GLM)
Example: 3DGS
|
|
-
Output
1 2 3(base) yi@yi-Alienware:~/Downloads/Cpp_Study$ g++ test_glm.cpp (base) yi@yi-Alienware:~/Downloads/Cpp_Study$ ./a.out mat3x3((2.000000, 0.000000, 0.000000), (0.000000, 3.000000, 0.000000), (0.000000, 0.000000, 4.000000)) -
Refer to How do I print vector values of type glm::vec3 that have been passed by reference? - SO
-
Use
glm::to_string(). Episode 18 - OpenGL Math - Introduction to the GLM Library - Modern OpenGL - Mike Shah