Exemplo n.º 1
0
        // Calculate and return the inverse matrix
        public static Perspective operator ~(Perspective b)
        {
            Perspective ret = b;

            ret.invert();
            return(ret);
        }
Exemplo n.º 2
0
        //------------------------------------------------------------------------
        public Perspective multiply_inv(Perspective m)
        {
            Perspective t = m;

            t.invert();
            return(multiply(t));
        }
Exemplo n.º 3
0
        // Multiply inverse of "m" by "this" and assign the result to "this"
        public Perspective premultiply_inv(Affine m)
        {
            Perspective t = new Perspective(m);

            t.invert();
            Set(t.multiply(this));
            return(this);
        }
Exemplo n.º 4
0
        //------------------------------------------------------------------------
        public Perspective premultiply_inv(Perspective m)
        {
            Perspective t = m;

            t.invert();
            Set(t.multiply(this));
            return(this);
        }
Exemplo n.º 5
0
        // Inverse transformation of x and y. It works slow because
        // it explicitly inverts the matrix on every call. For massive
        // operations it's better to invert() the matrix and then use
        // direct transformations.
        public void inverse_transform(ref double x, ref double y)
        {
            Perspective t = new Perspective(this);

            if (t.invert())
            {
                t.transform(ref x, ref y);
            }
        }
Exemplo n.º 6
0
 // Inverse transformation of x and y. It works slow because
 // it explicitly inverts the matrix on every call. For massive 
 // operations it's better to invert() the matrix and then use 
 // direct transformations. 
 public void inverse_transform(ref double x, ref double y)
 {
     Perspective t = new Perspective(this);
     if(t.invert()) t.transform(ref x, ref y);
 }
Exemplo n.º 7
0
 // Multiply inverse of "m" by "this" and assign the result to "this"
 public Perspective premultiply_inv(Affine m)
 {
     Perspective t=new Perspective(m);
     t.invert();
     Set(t.multiply(this));
     return this;
 }