Box2DX.Common.Mat22.Mat22 C# (CSharp) Метод

Mat22() публичный Метод

Construct this matrix using an angle. This matrix becomes an orthonormal rotation matrix.
public Mat22 ( float angle ) : System
angle float
Результат System
        public Mat22(float angle)
        {
            float c = Mathf.Cos(angle);
            float s = Mathf.Sin(angle);
            Col1.x = c; Col2.x = -s;
            Col1.y = s; Col2.y = c;
        }

Same methods

Mat22::Mat22 ( System.Vector2 c1, System.Vector2 c2 ) : System
Mat22::Mat22 ( float a11, float a12, float a21, float a22 ) : System