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

CreateRotationY() public static method

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

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

            m.V00 = m.V22 = cos;
            m.V02 = sin;
            m.V20 = -sin;
            m.V11 = 1;

            return m;
        }