![]() |
OpenVDB 13.1.0
|
#include <nanovdb/math/Math.h>
Public Member Functions | |
| Mat2 ()=default | |
| __hostdev__ | Mat2 (T a, T b, T c, T d) |
| Constructor given individual array elements, the ordering is in row major form: | |
| template<typename Source> | |
| __hostdev__ | Mat2 (Source *array) |
| Constructor given array of elements, the ordering is in row major form. | |
| __hostdev__ Mat2 | operator- () const |
| __hostdev__ Mat2< T > | operator* (const Mat2< T > &m) const |
| Multiply by 2x2 matrix m and return the resulting matrix. | |
| __hostdev__ Mat2< T > & | operator+= (const Mat2< T > &m) |
| Add each element of the given matrix to the corresponding element of this matrix. | |
| __hostdev__ Mat2< T > | transpose () const |
| returns transpose of this | |
| __hostdev__ Mat2< T > | inverse () const |
| returns inverse of this | |
| __hostdev__ T * | operator[] (int row) |
| __hostdev__ const T * | operator[] (int row) const |
Static Protected Member Functions | |
| static constexpr int | rows () |
| static constexpr int | cols () |
| static constexpr int | size () |
Protected Attributes | |
| T | mData [ROWS *COLS] |
|
default |
|
inline |
Constructor given individual array elements, the ordering is in row major form:
a b c d
Constructor given array of elements, the ordering is in row major form.
|
inlinestaticconstexprprotectedinherited |
|
inline |
returns inverse of this
|
inline |
Multiply by 2x2 matrix m and return the resulting matrix.
|
inline |
Add each element of the given matrix to the corresponding element of this matrix.
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlinestaticconstexprprotectedinherited |
|
inlinestaticconstexprprotectedinherited |
|
inline |
returns transpose of this
|
protectedinherited |