gz/math/Matrix6.hh
Go to the documentation of this file.
static const size_t IGN_FIVE_SIZE_T
size_t type with a value of 5
Definition: gz/math/Helpers.hh:242
Matrix6< T > Transposed() const
Return the transpose of this matrix.
Definition: gz/math/Matrix6.hh:253
Definition: gz/math/AdditivelySeparableScalarField3.hh:27
Matrix6< T > operator+(const Matrix6< T > &_m2) const
Addition operator.
Definition: gz/math/Matrix6.hh:348
@ TOP_RIGHT
Top-right corner, consisting of the intersection between the first 3 rows and last 3 columns.
Definition: gz/math/Matrix6.hh:46
bool SetValue(size_t _row, size_t _col, T _v)
Set a value in a specific row and col param[in] _row Row of the matrix param[in] _col Col of the matr...
Definition: gz/math/Matrix6.hh:133
const T & operator()(const size_t _row, const size_t _col) const
Get the value at the specified row, column index.
Definition: gz/math/Matrix6.hh:369
Matrix3< T > Submatrix(Matrix6Corner _corner) const
Get one of the four 3x3 submatrices that compose this matrix. These submatrices are formed by dividin...
Definition: gz/math/Matrix6.hh:394
T & operator()(const size_t _row, const size_t _col)
Get a mutable version of the value at the specified row, column index.
Definition: gz/math/Matrix6.hh:383
Matrix6< T > operator*(const Matrix6< T > &_m2) const
Multiplication operator.
Definition: gz/math/Matrix6.hh:317
bool operator==(const Matrix6< T > &_m) const
Equality operator.
Definition: gz/math/Matrix6.hh:492
bool Equal(const Matrix6 &_m, const T &_tol) const
Equality test with tolerance.
Definition: gz/math/Matrix6.hh:448
void appendToStream(std::ostream &_out, T _number)
Append a number to a stream. Makes sure "-0" is returned as "0".
Definition: gz/math/Helpers.hh:626
static const Matrix6< T > & Zero
Zero matrix.
Definition: gz/math/Matrix6.hh:64
static constexpr std::size_t MatrixSize
Size of matrix is fixed to 6x6.
Definition: gz/math/Matrix6.hh:58
constexpr Matrix6(T _v00, T _v01, T _v02, T _v03, T _v04, T _v05, T _v10, T _v11, T _v12, T _v13, T _v14, T _v15, T _v20, T _v21, T _v22, T _v23, T _v24, T _v25, T _v30, T _v31, T _v32, T _v33, T _v34, T _v35, T _v40, T _v41, T _v42, T _v43, T _v44, T _v45, T _v50, T _v51, T _v52, T _v53, T _v54, T _v55)
Constructor.
Definition: gz/math/Matrix6.hh:113
@ BOTTOM_RIGHT
Bottom-right corner, consisting of the intersection between the last 3 rows and last 3 columns.
Definition: gz/math/Matrix6.hh:54
STL class.
T clamp(T _v, T _min, T _max)
Simple clamping function.
Definition: gz/math/Helpers.hh:406
T setf(T... args)
void SetSubmatrix(Matrix6Corner _corner, const Matrix3< T > &_mat)
Set one of the four 3x3 submatrices that compose this matrix. These submatrices are formed by dividin...
Definition: gz/math/Matrix6.hh:422
void Transpose()
Transpose this matrix.
Definition: gz/math/Matrix6.hh:232
Matrix6< T > & operator=(const Matrix6< T > &_mat)=default
Assignment operator. this = _mat.
Matrix6< T > operator+=(const Matrix6< T > &_m2)
Addition assignment operator. This matrix will become equal to this + _m2.
Definition: gz/math/Matrix6.hh:339
@ TOP_LEFT
Top-left corner, consisting of the intersection between the first 3 rows and first 3 columns.
Definition: gz/math/Matrix6.hh:42
T swap(T... args)
@ BOTTOM_LEFT
Bottom-left corner, consisting of the intersection between the last 3 rows and first 3 columns.
Definition: gz/math/Matrix6.hh:50
T fail(T... args)
bool operator!=(const Matrix6< T > &_m) const
Inequality test operator.
Definition: gz/math/Matrix6.hh:500
static const size_t IGN_ZERO_SIZE_T
size_t type with a value of 0
Definition: gz/math/Helpers.hh:227
friend std::ostream & operator<<(std::ostream &_out, const Matrix6< T > &_m)
Stream insertion operator.
Definition: gz/math/Matrix6.hh:509
Matrix6< T > operator*=(const Matrix6< T > &_m2)
Multiplication assignment operator. This matrix will become equal to this * _m2.
Definition: gz/math/Matrix6.hh:308
void Set(T _v00, T _v01, T _v02, T _v03, T _v04, T _v05, T _v10, T _v11, T _v12, T _v13, T _v14, T _v15, T _v20, T _v21, T _v22, T _v23, T _v24, T _v25, T _v30, T _v31, T _v32, T _v33, T _v34, T _v35, T _v40, T _v41, T _v42, T _v43, T _v44, T _v45, T _v50, T _v51, T _v52, T _v53, T _v54, T _v55)
Change the values.
Definition: gz/math/Matrix6.hh:180
Matrix6Corner
Identifiers for each of the 4 3x3 corners of the matrix.
Definition: gz/math/Matrix6.hh:38
STL class.
static const Matrix6< T > & Identity
Identity matrix.
Definition: gz/math/Matrix6.hh:61
friend std::istream & operator>>(std::istream &_in, Matrix6< T > &_m)
Stream extraction operator.
Definition: gz/math/Matrix6.hh:530