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; }