Monobjc.GLKit.GLKMatrix3.MakeZRotation C# (CSharp) 메소드

MakeZRotation() 공개 정적인 메소드

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

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

Available in OS X x0.8 and later.

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