Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __FHTRANSFORM_H__
00011 #define __FHTRANSFORM_H__
00012
00013 #include <math.h>
00014
00015 namespace libfreehand
00016 {
00017
00018 class FHTransform
00019 {
00020 public:
00021 FHTransform();
00022 FHTransform(double m11, double m21, double m12, double m22, double m13, double m23);
00023 FHTransform(const FHTransform &trafo);
00024
00025 void applyToPoint(double &x, double &y) const;
00026 void applyToArc(double &rx, double &ry, double &rotation, bool &sweep, double &endx, double &endy) const;
00027
00028 private:
00029 double m_m11;
00030 double m_m21;
00031 double m_m12;
00032 double m_m22;
00033 double m_m13;
00034 double m_m23;
00035 };
00036
00037 }
00038
00039 #endif
00040