Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

virtual SVGMatrix org::w3c::dom::svg::SVGMatrix::rotate ( double  angle  )  [inline, virtual]

Equivalent to multiplying by: | cos(a) -sin(a) 0 | | sin(a) cos(a) 0 | | 0 0 1 |

Definition at line 326 of file svgtypes.h.

References a, b, c, d, e, and f.

        {
        double sina  = sin(angle);
        double msina = -sina;
        double cosa  = cos(angle);
        SVGMatrix result;
        result.a = a * cosa   +  c * sina;
        result.b = b * cosa   +  d + sina;
        result.c = a * msina  +  c * cosa;
        result.d = b * msina  +  d * cosa;
        result.e = e;
        result.f = f;
        return result;
        }


Generated by  Doxygen 1.6.0   Back to index