Example #1
0
        public static Matrix2x2 Scale(float x, float y)
        {
            var m = new Matrix2x2(x, 0.0f,
                                  0.0f, y);

            return(m);
        }
Example #2
0
        public static Matrix2x2 RotateZ(float a)
        {
            var cosa = (float)Math.Cos(a);
            var sina = (float)Math.Sin(a);

            var m = new Matrix2x2(cosa, -sina,
                                  sina, cosa);

            return(m);
        }