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

CreateRotationZ() public static method

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

            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;

            return m;
        }