'Converting Degrees Angle to Rotation Matrix C#

Basically I need to take the rotation of an object (X, Y and Z rotation) and convert it to a rotation matrix in C#. Basically what https://www.andre-gaschler.com/rotationconverter/ does except I'm not using three.js.

I've got the degrees value to a radian value, and have also converted that value to quaternion, but now I am stuck on how to get this into a rotation matrix form.

Any ideas?



Solution 1:[1]

rotation3 r = rotation3.fromXyz(12, 45, 60);  //(in degree)
var m = r.getMatrix();

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nitesh