1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
13 #include <vcl/dllapi.h>
14 #include <tools/gen.hxx>
18 // matrix helper class
19 // TODO: use basegfx matrix class instead or derive from it
21 /* for sparse matrices of the form (2D linear transformations)
30 void set(const double* pn
)
32 for (int i
= 0; i
< 6; i
++)
39 void skew(double alpha
, double beta
);
40 void scale(double sx
, double sy
);
41 void rotate(double angle
);
42 void translate(double tx
, double ty
);
45 double get(size_t i
) const { return f
[i
]; }
47 Point
transform(const Point
& rPoint
) const;
51 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */