FHTransform.h Source File documentation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

FHTransform.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libfreehand project.
4 *
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/.
8 */
9
10 #ifndef __FHTRANSFORM_H__
11 #define __FHTRANSFORM_H__
12
13 #include <math.h>
14
15 namespace libfreehand
16 {
17
18 class FHTransform
19 {
20 public:
21 FHTransform();
22 FHTransform(double m11, double m21, double m12, double m22, double m13, double m23);
23 FHTransform(const FHTransform &trafo);
24
25 void applyToPoint(double &x, double &y) const;
26 void applyToArc(double &rx, double &ry, double &rotation, bool &sweep, double &endx, double &endy) const;
27
28 private:
29 double m_m11;
30 double m_m21;
31 double m_m12;
32 double m_m22;
33 double m_m13;
34 double m_m23;
35 };
36
37 } // namespace libfreehand
38
39 #endif /* __FHTRANSFORM_H__ */
40 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libfreehand::FHTransform::FHTransform
FHTransform()
Definition: FHTransform.cpp:14
libfreehand::FHTransform::m_m21
double m_m21
Definition: FHTransform.h:30
libfreehand::FHTransform::m_m23
double m_m23
Definition: FHTransform.h:34
libfreehand
Definition: FHCollector.h:19
libfreehand::FHTransform::m_m11
double m_m11
Definition: FHTransform.h:29
libfreehand::FHTransform
Definition: FHTransform.h:18
libfreehand::FHTransform::applyToArc
void applyToArc(double &rx, double &ry, double &rotation, bool &sweep, double &endx, double &endy) const
Definition: FHTransform.cpp:37
libfreehand::FHTransform::applyToPoint
void applyToPoint(double &x, double &y) const
Definition: FHTransform.cpp:30
libfreehand::FHTransform::m_m22
double m_m22
Definition: FHTransform.h:32
libfreehand::FHTransform::m_m12
double m_m12
Definition: FHTransform.h:31
libfreehand::FHTransform::m_m13
double m_m13
Definition: FHTransform.h:33