![]() |
Scanframe Modular Application 0.1.0
|
Go to the source code of this file.
Classes | |
class | sf::TMatrix44< T > |
Generic 4 x 4 matrix template. More... | |
union | sf::TMatrix44< T >::data_type |
Storage union of the 4x4 matrix as array and 4 x4 array. It is initialized as a unit-matrix. More... | |
Namespaces | |
namespace | sf |
Functions | |
template<typename T > | |
TMatrix44< T > | sf::operator* (const TMatrix44< T > &lm, const TMatrix44< T > &rm) |
Multiplies to matrices into a single one. | |
template<typename T > | |
std::ostream & | sf::operator<< (std::ostream &os, const TMatrix44< T > &mtx) |
Operator for writing the matrix to an output-stream. | |
template<typename T > | |
std::istream & | sf::operator>> (std::istream &is, TMatrix44< T > &mtx) noexcept(false) |
Operator for reading the matrix from an input stream. | |
Description: The Matrix44 class is a colum-major matrix of 4x4 floating point values.
Note: Beware of OpenGL matrices (their translation vector is row 4 instead of col4) Functions are provided to convert to and from GL matrices (TransposeCopyTo and TransposeAssign).
Example of usage: Matrix44 A(...), B(...); Matrix44 C = A*B;
Note: A * B is not equal to resulting matrix of B * A. When A * B then matrix A is applied on the axes of B. When A *= B the matrix B is applied on the axes of A.