Hide menu
Loading...
Searching...
No Matches
cadex::Geom::Matrix2d Class Reference

Defines a square matrix of size two. More...

#include <cadex/Geom/Matrix2d.hxx>

Inherits Matrix< 2 >.

Public Member Functions

 Matrix2d ()
 Constructor.
 
 Matrix2d (const MatrixType &theOther)
 Constructor.
 
 Matrix2d (double theA11, double theA12, double theA21, double theA22)
 Constructor.
 
void SetDiagonal (double theX1, double theX2)
 
void SetRotation (double theAng)
 Modifies the matrix so that represents a rotation.
 
double Determinant () const
 
bool IsSingular () const
 
void Invert () override
 
Matrix2d Inverted () const
 
void Multiply (double theScalar)
 
void Multiply (const Matrix2d &theOther)
 
void PreMultiply (const Matrix2d &theOther)
 
Matrix2d Multiplied (double theScalar) const
 
Matrix2d Multiplied (const Matrix2d &theOther) const
 

Detailed Description

Defines a square matrix of size two.

Constructor & Destructor Documentation

◆ Matrix2d() [1/3]

cadex::Geom::Matrix2d::Matrix2d ( )
inline

Constructor.

◆ Matrix2d() [2/3]

cadex::Geom::Matrix2d::Matrix2d ( const MatrixType & theOther)

Constructor.

◆ Matrix2d() [3/3]

cadex::Geom::Matrix2d::Matrix2d ( double theA11,
double theA12,
double theA21,
double theA22 )

Constructor.

Member Function Documentation

◆ SetRotation()

void cadex::Geom::Matrix2d::SetRotation ( double theAng)

Modifies the matrix so that represents a rotation.