Accord.Math.Matrix3x3.CreateRotationZ C# (CSharp) Method

CreateRotationZ() public static method

Creates rotation matrix around Z axis.
public static CreateRotationZ ( float radians ) : Matrix3x3
radians float Rotation angle around Z axis in radians.
return Matrix3x3
        public static Matrix3x3 CreateRotationZ( float radians )
        {
            Matrix3x3 m = new Matrix3x3( );

            float cos = (float) System.Math.Cos( radians );
            float sin = (float) System.Math.Sin( radians );

            m.V00 = m.V11 = cos;
            m.V01 = -sin;
            m.V10 = sin;
            m.V22 = 1;

            return m;
        }