OpenVDB 13.1.0
Loading...
Searching...
No Matches
Mat4< T > Class Template Reference

#include <nanovdb/math/Math.h>

Public Member Functions

 Mat4 ()=default
template<typename Source>
__hostdev__ Mat4 (Source a, Source b, Source c, Source d, Source e, Source f, Source g, Source h, Source i, Source j, Source k, Source l, Source m, Source n, Source o, Source p)
 Constructor given individual array elements, the ordering is in row major form:
template<typename Source>
__hostdev__ Mat4 (Source *a)
 Constructor given array of elements, the ordering is in row major form.
__hostdev__ Mat4 transpose () const
 returns transpose 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

mData [ROWS *COLS]

Constructor & Destructor Documentation

◆ Mat4() [1/3]

template<typename T>
Mat4 ( )
default

◆ Mat4() [2/3]

template<typename T>
template<typename Source>
__hostdev__ Mat4 ( Source a,
Source b,
Source c,
Source d,
Source e,
Source f,
Source g,
Source h,
Source i,
Source j,
Source k,
Source l,
Source m,
Source n,
Source o,
Source p )
inline

Constructor given individual array elements, the ordering is in row major form:

a b c d
e f g h
i j k l
m n o p

◆ Mat4() [3/3]

template<typename T>
template<typename Source>
__hostdev__ Mat4 ( Source * a)
inline

Constructor given array of elements, the ordering is in row major form.

Member Function Documentation

◆ cols()

constexpr int cols ( )
inlinestaticconstexprprotectedinherited

◆ operator[]() [1/2]

__hostdev__ T * operator[] ( int row)
inlineinherited

◆ operator[]() [2/2]

__hostdev__ const T * operator[] ( int row) const
inlineinherited

◆ rows()

constexpr int rows ( )
inlinestaticconstexprprotectedinherited

◆ size()

constexpr int size ( )
inlinestaticconstexprprotectedinherited

◆ transpose()

template<typename T>
__hostdev__ Mat4 transpose ( ) const
inline

returns transpose of this

Member Data Documentation

◆ mData

T mData[ROWS *COLS]
protectedinherited