#include <RMatrix.hxx>
Public Member Functions | |
| RMatrix (void) | |
| RMatrix (T value) | |
| RMatrix (const T *data) | |
| template<typename R> | |
| RMatrix (const RMatrix< R, m, n > &other) | |
| void | transpose (void) |
| void | zero (void) |
| void | assign (T value) |
| const std::size_t | rows (void) const |
| const std::size_t | cols (void) const |
| T & | operator() (std::size_t row, std::size_t col) |
| const T & | operator() (std::size_t row, std::size_t col) const |
| T | get (std::size_t row, std::size_t col) const |
| void | set (std::size_t row, std::size_t col, T value) |
| void | writeRowWise (T *destination) const |
| void | writeColumnWise (T *destination) const |
| void | readRowWise (const T *source) |
| void | readColumnWise (const T *source) |
| bool | equal (const RMatrix< T, m, n > &matrix, T delta) const |
Protected Attributes | |
| T | m_data [m][n] |
Uses T as type for its elements and has m rows and n columns. This class is more or less a simple data-container. For typical computer graphics issues, use RMatrix4x4 !
Definition at line 25 of file RMatrix.hxx.
|
||||||||||
|
Default constructor. Assign the default value T() to all elements (== 0 for basic types). Definition at line 7 of file RMatrix.inl. |
|
||||||||||
|
Initalizes all elements with the given value.
Definition at line 15 of file RMatrix.inl. |
|
||||||||||
|
Copies the data from data (m*n values). Assumes row-wise ordering. Definition at line 23 of file RMatrix.inl. |
|
||||||||||||||
|
Template-Constructor. Does not hide the (default-)copy-constructor ! Definition at line 32 of file RMatrix.inl. |
|
||||||||||
|
Assign this value to all elements.
Definition at line 65 of file RMatrix.inl. |
|
||||||||||
|
Definition at line 89 of file RMatrix.inl. |
|
||||||||||||||||
|
Elementwise comparsion with respect to delta. Definition at line 194 of file RMatrix.inl. |
|
||||||||||||||||
|
Get a value. Definition at line 98 of file RMatrix.inl. |
|
||||||||||||||||
|
Reference to a value (const, so only reading is possible).
Reimplemented in RayGina::CORE::RMatrix4x4< T >. Definition at line 134 of file RMatrix.inl. |
|
||||||||||||||||
|
Reference to a value (not const, so reading and writing is possible).
Reimplemented in RayGina::CORE::RMatrix4x4< T >. Definition at line 122 of file RMatrix.inl. |
|
||||||||||
|
Reads column by column. Assumes source to be the first element of a T[m*n] array.
Definition at line 182 of file RMatrix.inl. |
|
||||||||||
|
Reads row by row. Assumes source to be the first element of a T[m*n] array.
Definition at line 170 of file RMatrix.inl. |
|
||||||||||
|
Definition at line 80 of file RMatrix.inl. |
|
||||||||||||||||||||
|
Set a value Definition at line 110 of file RMatrix.inl. |
|
||||||||||
|
Transposes the matrix. Definition at line 43 of file RMatrix.inl. |
|
||||||||||
|
Writes column by column to destination. Assumes destination to be the first element of a T[m*n] array.
Definition at line 158 of file RMatrix.inl. |
|
||||||||||
|
Writes row by row to destination. Assumes destination to be the first element of a T[m*n] array.
Definition at line 146 of file RMatrix.inl. |
|
||||||||||
|
Sets all elements to zero.
Reimplemented in RayGina::CORE::RMatrix4x4< T >. Definition at line 56 of file RMatrix.inl. |
|
|||||
|
Definition at line 119 of file RMatrix.hxx. |
1.3.9.1