//Rotate this Matrix4 with the specified values public void RotateY(double radians) { Matrix4 m = new Matrix4(); m.SetRotateY(radians); Set(this * m); }
public void SetEuler(float pitch, float yaw, float roll) { Matrix4 x = new Matrix4(); Matrix4 y = new Matrix4(); Matrix4 z = new Matrix4(); x.SetRotateX(pitch); y.SetRotateY(yaw); z.SetRotateZ(roll); Set(z * y * x); }
//sets the euler of the matrix usig pitch, yaw, and roll void SetEuler(float pitch, float yaw, float roll) { Matrix4 x = new Matrix4(); Matrix4 y = new Matrix4(); Matrix4 z = new Matrix4(); x.SetRotateX(pitch); y.SetRotateY(yaw); z.SetRotateZ(roll); // combine rotations in a specific order Set(z * y * x); }