matrix3 class
matrix3
Constructors
matrix3()
Create an identity matrix.
matrix3(const std::array<double,9> arr)
Create a matrix3 instance with an array.
- arr
- An array contains 9 elements.
Functions
const matrix3
T() const
Returns the transposed matrix3 instance.
void
print() const
Display all the elements in stdout.
Operators
const double
operator[] (const size_t i) const
Access to the i-th element of the matrix.
const double
operator() (const size_t i, const size_t j) const
Access to the (i,j)-element of the matrix.
const positional
operator* (const positional& v) const
Defines the product operator between matrxi3 and a positional class. The positional class is either vector3 or direction_cosine.
const footprint
operator* (const footprint& v) const
Defines the product operator between matrxi3 and footprint.
const matrix3
operator- () const
Returns a matrix3 with all the elements negated.
const matrix3
operator+ (const matrix3& m) const
Defines the add operator between another matrix3 instance.
const matrix3
operator- (const matrix3& m) const
Defines the subtract operator between another matrix3 instance.
const matrix3
operator* (const matrix3& m) const
Defines the product operator between another matrix3 instance.
const matrix3
operator+ (const matrix3& m, const double x)
Defines the add operator between matrix3 and double.
const matrix3
operator+ (const double x, const matrix3& m)
Defines the add operator between double and matrix3.
const matrix3
operator- (const matrix3& m, const double x)
Defines the subtract operator between matrix3 and double.
const matrix3
operator- (const double x, const matrix3& m)
Defines the subtract operator between double and matrix3.
const matrix3
operator* (const matrix3& m, const double x)
Defines the product operator between matrix3 and double.
const matrix3
operator* (const double x, const matrix3& m)
Defines the product operator between double and matrix3.
const matrix3
operator/ (const matrix3& m, const double x)
Defines the divide operator between matrix3 and double.