Box2D.Common.Mat22.CreateRotationalTransform C# (CSharp) Method

CreateRotationalTransform() public static method

public static CreateRotationalTransform ( float angle ) : Mat22
angle float
return Mat22
        public static Mat22 CreateRotationalTransform(float angle)
        {
            Mat22 mat = new Mat22();
            float c = MathUtils.Cos(angle);
            float s = MathUtils.Sin(angle);
            mat.Ex.X = c;
            mat.Ey.X = -s;
            mat.Ex.Y = s;
            mat.Ey.Y = c;
            return mat;
        }

Same methods

Mat22::CreateRotationalTransform ( float angle, Mat22 result ) : void