NTrace
GPU ray tracing framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FW::Mat3f Class Reference

#include <Math.hpp>

Inherits FW::MatrixBase< F32, 3, Mat3f >.

Public Member Functions

FW_CUDA_FUNC Mat3f (void)
 
FW_CUDA_FUNC Mat3f (F32 a)
 
FW_CUDA_FUNC const F32getPtr (void) const
 
FW_CUDA_FUNC F32getPtr (void)
 
template<class V >
FW_CUDA_FUNC Mat3f (const MatrixBase< F32, 3, V > &v)
 
template<class V >
FW_CUDA_FUNC Mat3foperator= (const MatrixBase< F32, 3, V > &v)
 
- Public Member Functions inherited from FW::MatrixBase< F32, 3, Mat3f >
FW_CUDA_FUNC MatrixBase (void)
 
FW_CUDA_FUNC const T * getPtr (void) const
 
FW_CUDA_FUNC T * getPtr (void)
 
FW_CUDA_FUNC const T & get (int idx) const
 
FW_CUDA_FUNC T & get (int idx)
 
FW_CUDA_FUNC const T & get (int r, int c) const
 
FW_CUDA_FUNC T & get (int r, int c)
 
FW_CUDA_FUNCset (int idx, const T &a)
 
FW_CUDA_FUNCset (int r, int c, const T &a)
 
FW_CUDA_FUNC void set (const T &a)
 
FW_CUDA_FUNC void set (const T *ptr)
 
FW_CUDA_FUNC void set (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC const Vector< T, L > & col (int c) const
 
FW_CUDA_FUNC Vector< T, L > & col (int c)
 
FW_CUDA_FUNC const Vector< T, L > & getCol (int c) const
 
FW_CUDA_FUNC Vector< T, L > getRow (int r) const
 
FW_CUDA_FUNC void setZero (void)
 
FW_CUDA_FUNC void setIdentity (void)
 
void print (void) const
 
FW_CUDA_FUNCdet (void) const
 
FW_CUDA_FUNCtransposed (void) const
 
FW_CUDA_FUNCinverted (void) const
 
FW_CUDA_FUNC void transpose (void)
 
FW_CUDA_FUNC void invert (void)
 
FW_CUDA_FUNC const T & operator() (int r, int c) const
 
FW_CUDA_FUNC T & operator() (int r, int c)
 
FW_CUDA_FUNC S & operator= (const T &a)
 
FW_CUDA_FUNC S & operator= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator+= (const T &a)
 
FW_CUDA_FUNC S & operator+= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator-= (const T &a)
 
FW_CUDA_FUNC S & operator-= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator*= (const T &a)
 
FW_CUDA_FUNC S & operator*= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator/= (const T &a)
 
FW_CUDA_FUNC S & operator/= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator%= (const T &a)
 
FW_CUDA_FUNC S & operator%= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator&= (const T &a)
 
FW_CUDA_FUNC S & operator&= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator|= (const T &a)
 
FW_CUDA_FUNC S & operator|= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator^= (const T &a)
 
FW_CUDA_FUNC S & operator^= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator<<= (const T &a)
 
FW_CUDA_FUNC S & operator<<= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator>>= (const T &a)
 
FW_CUDA_FUNC S & operator>>= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNCoperator+ (void) const
 
FW_CUDA_FUNCoperator+ (const T &a) const
 
FW_CUDA_FUNCoperator+ (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNCoperator- (void) const
 
FW_CUDA_FUNCoperator- (const T &a) const
 
FW_CUDA_FUNCoperator- (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNCoperator~ (void) const
 
FW_CUDA_FUNCoperator* (const T &a) const
 
FW_CUDA_FUNCoperator* (const VectorBase< T, L, V > &v) const
 
FW_CUDA_FUNCoperator* (const VectorBase< T, L-1, V > &v) const
 
FW_CUDA_FUNCoperator* (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNCoperator/ (const T &a) const
 
FW_CUDA_FUNCoperator/ (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNCoperator% (const T &a) const
 
FW_CUDA_FUNCoperator% (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNCoperator& (const T &a) const
 
FW_CUDA_FUNCoperator& (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNCoperator| (const T &a) const
 
FW_CUDA_FUNCoperator| (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNCoperator^ (const T &a) const
 
FW_CUDA_FUNCoperator^ (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNCoperator<< (const T &a) const
 
FW_CUDA_FUNCoperator<< (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNCoperator>> (const T &a) const
 
FW_CUDA_FUNCoperator>> (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC void setCol (int c, const VectorBase< T, L, V > &v)
 
FW_CUDA_FUNC void setRow (int r, const VectorBase< T, L, V > &v)
 
FW_CUDA_FUNC bool operator== (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC bool operator!= (const MatrixBase< T, L, V > &v) const
 

Static Public Member Functions

static FW_CUDA_FUNC Mat3f fromPtr (const F32 *ptr)
 
static Mat3f rotation (const Vec3f &axis, F32 angle)
 
- Static Public Member Functions inherited from FW::MatrixBase< F32, 3, Mat3f >
static FW_CUDA_FUNCtranslate (const VectorBase< T, L-1, V > &v)
 
static FW_CUDA_FUNCscale (const VectorBase< T, L-1, V > &v)
 
static FW_CUDA_FUNCscale (const VectorBase< T, L, V > &v)
 

Public Attributes

F32 m00
 
F32 m10
 
F32 m20
 
F32 m01
 
F32 m11
 
F32 m21
 
F32 m02
 
F32 m12
 
F32 m22
 

Detailed Description

Definition at line 651 of file Math.hpp.

Constructor & Destructor Documentation

FW_CUDA_FUNC FW::Mat3f::Mat3f ( void  )
inline

Definition at line 654 of file Math.hpp.

FW_CUDA_FUNC FW::Mat3f::Mat3f ( F32  a)
inlineexplicit

Definition at line 655 of file Math.hpp.

template<class V >
FW_CUDA_FUNC FW::Mat3f::Mat3f ( const MatrixBase< F32, 3, V > &  v)
inline

Definition at line 661 of file Math.hpp.

Member Function Documentation

static FW_CUDA_FUNC Mat3f FW::Mat3f::fromPtr ( const F32 ptr)
inlinestatic

Definition at line 659 of file Math.hpp.

FW_CUDA_FUNC const F32* FW::Mat3f::getPtr ( void  ) const
inline

Definition at line 657 of file Math.hpp.

FW_CUDA_FUNC F32* FW::Mat3f::getPtr ( void  )
inline

Definition at line 658 of file Math.hpp.

template<class V >
FW_CUDA_FUNC Mat3f& FW::Mat3f::operator= ( const MatrixBase< F32, 3, V > &  v)
inline

Definition at line 662 of file Math.hpp.

Mat3f Mat3f::rotation ( const Vec3f axis,
F32  angle 
)
static

Definition at line 96 of file Math.cpp.

Member Data Documentation

F32 FW::Mat3f::m00

Definition at line 669 of file Math.hpp.

F32 FW::Mat3f::m01

Definition at line 670 of file Math.hpp.

F32 FW::Mat3f::m02

Definition at line 671 of file Math.hpp.

F32 FW::Mat3f::m10

Definition at line 669 of file Math.hpp.

F32 FW::Mat3f::m11

Definition at line 670 of file Math.hpp.

F32 FW::Mat3f::m12

Definition at line 671 of file Math.hpp.

F32 FW::Mat3f::m20

Definition at line 669 of file Math.hpp.

F32 FW::Mat3f::m21

Definition at line 670 of file Math.hpp.

F32 FW::Mat3f::m22

Definition at line 671 of file Math.hpp.


The documentation for this class was generated from the following files: