39 CMatrix2d(
double m11,
double m12,
double m21,
double m22);
51 void Reset(
double angle,
double scale = 1.0,
bool isPosDef =
true);
171 SetAt(0, 0, axisX[0]);
172 SetAt(0, 1, axisX[1]);
173 SetAt(1, 0, axisY[0]);
174 SetAt(1, 1, axisY[1]);
292 BaseClass::operator=(matrix);
void Multiply(const CMatrix2d &matrix)
CVector2d GetAxesLengths() const
Get lengths of axes vectors.
void Reset()
Default reset to identity.
CMatrix2d GetTransposed() const
Calculate transposed matrix.
CVector2d GetAxisX() const
Get axis X vector.
CVector2d GetMultiplied(const CVector2d &position) const
void MultiplyLeft(const CMatrix2d &matrix)
CMatrix2d GetInverted() const
Calculate inverted matrix.
CVector2d GetAxisY() const
Get axis Y vector.
CMatrix2d operator*(double scale) const
Multiplication by scalar number.
CMatrix2d operator+(const BaseClass &matrix) const
i2d::CVector2d GetInvMultiplied(const i2d::CVector2d &position) const
Inverted operation to GetApply().
static const CMatrix2d & GetIdentity()
imath::TMatrix< 2, 2 > BaseClass
void Reset(double angle, const CVector2d &scale, bool isPosDef=true)
Set the deformation matrix using specified angle (in radians) and scale determined for both axis sepa...
CMatrix2d()
Constructor with no member initialization.
double GetApproxAngle() const
Get angle of axis X in radians.
bool GetEigenVectors(i2d::CVector2d &vector1, i2d::CVector2d &vector2, double &value1, double &value2) const
Calculate eigen vectors and eigen values.
CMatrix2d & operator=(const CMatrix2d &matrix)
Copy operator.
CMatrix2d operator/(double scale) const
Division by scalar number.
double GetDet() const
Calculate determinant of deformation matrix.
double GetApproxScale() const
Get approximated scale.
bool GetInvMultiplied(const i2d::CVector2d &position, i2d::CVector2d &result) const
Inverted operation to GetApply().
bool GetInverted(CMatrix2d &result) const
Calculate inverted matrix.
void Reset(double angle, double scale=1.0, bool isPosDef=true)
Set the matrix using specified angle (in radians) and uniform scale.
Definition of position or mathematical vector on 2D plane.
void SetY(double y)
Set Y position of this vector.
void SetX(double x)
Set X position of this vector.
Definition of mathematical matrix with fixed dimensions.
TMatrix< Height, Width, double > GetTransposed() const
void GetAdded(const TMatrix< Width, Height, double > &matrix, TMatrix< Width, Height, double > &result) const
void GetMultiplied(const TMatrix< SecondWidth, Width, double > &matrix, TMatrix< SecondWidth, Height, double > &result) const
void GetNegated(TMatrix< Width, Height, double > &result)
void GetScaled(double value, TMatrix< Width, Height, double > &result) const
void SetAt(const IndexType &index, const ElementType &value)
const ElementType & GetAt(const IndexType &index) const
void GetSubstracted(const TMatrix< Width, Height, double > &matrix, TMatrix< Width, Height, double > &result) const