Untitled
unknown
c_cpp
2 years ago
467 B
7
Indexable
#include "matrix4x4.h" int main() { auto m1 = matrix4x4d::RotateZMatrix(DEG2RAD(30.0)); m1.Print("rotateZ(30)"); auto m2 = matrix4x4d::RotateMatrix(DEG2RAD(30.0), 0.0, 0.0, 1.0); m2.Print("rotate(30, 0, 0, 1)"); } rotateZ(30): 0.866 0.500 0.000 0.000 -0.500 0.866 0.000 0.000 0.000 0.000 1.000 0.000 0.000 0.000 0.000 1.000 rotate(30, 0, 0, 1): 0.866 -0.500 0.000 0.000 0.500 0.866 0.000 0.000 0.000 0.000 1.000 0.000 0.000 0.000 0.000 1.000
Editor is loading...