public static JMatrix CreateRotationY(float radians) { float num2 = JMath.Cos(radians); float num = JMath.Sin(radians); return(new JMatrix( m11: num2, m12: 0f, m13: -num, m21: 0f, m22: 1f, m23: 0f, m31: num, m32: 0f, m33: num2)); }
public static void CreateRotationX(float radians, out JMatrix result) { float num2 = JMath.Cos(radians); float num = JMath.Sin(radians); result = new JMatrix( m11: 1f, m12: 0f, m13: 0f, m21: 0f, m22: num2, m23: num, m31: 0f, m32: -num, m33: num2); }