5 #ifndef PDFTRON_H_CPPCommonMatrix2D
6 #define PDFTRON_H_CPPCommonMatrix2D
9 #include <C/Common/TRN_Types.h>
10 #include <C/Common/TRN_Matrix2D.h>
120 Matrix2D(
double a = 1,
double b = 0,
double c = 0,
double d = 1,
double h = 0,
double v = 0);
142 void Set (
double a,
double b,
double c,
double d,
double h,
double v);
155 void Concat(
double a,
double b,
double c,
double d,
double h,
double v);
190 #else // !defined(SWIG)
192 bool IsEquals(
const Matrix2D& m)
const;
193 bool IsNotEquals(
const Matrix2D& m)
const
195 return (!this->IsEquals(m));
197 #endif // !defined(SWIG)
204 void Mult(
double& in_out_x,
double& in_out_y)
const;
247 void Scale (
double h,
double v);
268 #include <Impl/Matrix2D.inl>
273 #endif // PDFTRON_H_CPPCommonMatrix2D
Matrix2D & operator*=(const Matrix2D &m)
bool operator==(const Matrix2D &m) const
void PostTranslate(double h, double v)
void PreTranslate(double h, double v)
Matrix2D(double a=1, double b=0, double c=0, double d=1, double h=0, double v=0)
bool operator!=(const Matrix2D &m) const
PDF::Point Mult(const PDF::Point &pt) const
void Set(double a, double b, double c, double d, double h, double v)
void Translate(double h, double v)
Matrix2D & operator=(const Matrix2D &m)
static Matrix2D ZeroMatrix()
void Concat(double a, double b, double c, double d, double h, double v)
Matrix2D operator*(const Matrix2D &m) const
void Scale(double h, double v)
static Matrix2D IdentityMatrix()
static Matrix2D RotationMatrix(const double angle)