Monobjc.GLKit.GLKMatrix3.MakeXRotation C# (CSharp) Method

MakeXRotation() public static method

Returns a 3x3 matrix that performs a rotation around the positive x-axis.

Original signature is 'GLKMatrix3 GLKMatrix3MakeXRotation ( float radians );'

Available in OS X x0.8 and later.

public static MakeXRotation ( float radians ) : GLKMatrix3
radians float MISSING
return GLKMatrix3
		public static GLKMatrix3 MakeXRotation (float radians)
		{
			float cos = (float)Math.Cos (radians);
			float sin = (float)Math.Sin (radians);
    
			GLKMatrix3 m = new GLKMatrix3 (1.0f, 0.0f, 0.0f, 0.0f, cos, sin, 0.0f, -sin, cos);
			return m;

		}