public static Mat22 CreateScaleTransform(float scale) { Mat22 mat = new Mat22(); mat.Ex.X = scale; mat.Ey.Y = scale; return mat; }