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

#include <Math.hpp>

Inherits FW::MatrixBase< F32, 2, Mat2f >.

Public Member Functions

FW_CUDA_FUNC Mat2f (void)
 
FW_CUDA_FUNC Mat2f (F32 a)
 
FW_CUDA_FUNC const F32 * getPtr (void) const
 
FW_CUDA_FUNC F32 * getPtr (void)
 
template<class V >
FW_CUDA_FUNC Mat2f (const MatrixBase< F32, 2, V > &v)
 
template<class V >
FW_CUDA_FUNC Mat2f & operator= (const MatrixBase< F32, 2, V > &v)
 
- Public Member Functions inherited from FW::MatrixBase< F32, 2, Mat2f >
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_FUNC T set (int idx, const T &a)
 
FW_CUDA_FUNC T set (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_FUNC T det (void) const
 
FW_CUDA_FUNC S transposed (void) const
 
FW_CUDA_FUNC S inverted (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_FUNC S operator+ (void) const
 
FW_CUDA_FUNC S operator+ (const T &a) const
 
FW_CUDA_FUNC S operator+ (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC S operator- (void) const
 
FW_CUDA_FUNC S operator- (const T &a) const
 
FW_CUDA_FUNC S operator- (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC S operator~ (void) const
 
FW_CUDA_FUNC S operator* (const T &a) const
 
FW_CUDA_FUNC V operator* (const VectorBase< T, L, V > &v) const
 
FW_CUDA_FUNC V operator* (const VectorBase< T, L-1, V > &v) const
 
FW_CUDA_FUNC S operator* (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC S operator/ (const T &a) const
 
FW_CUDA_FUNC S operator/ (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC S operator% (const T &a) const
 
FW_CUDA_FUNC S operator% (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC S operator& (const T &a) const
 
FW_CUDA_FUNC S operator& (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC S operator| (const T &a) const
 
FW_CUDA_FUNC S operator| (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC S operator^ (const T &a) const
 
FW_CUDA_FUNC S operator^ (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC S operator<< (const T &a) const
 
FW_CUDA_FUNC S operator<< (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC S operator>> (const T &a) const
 
FW_CUDA_FUNC S operator>> (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 Mat2f fromPtr (const F32 *ptr)
 
- Static Public Member Functions inherited from FW::MatrixBase< F32, 2, Mat2f >
static FW_CUDA_FUNC S translate (const VectorBase< T, L-1, V > &v)
 
static FW_CUDA_FUNC S scale (const VectorBase< T, L-1, V > &v)
 
static FW_CUDA_FUNC S scale (const VectorBase< T, L, V > &v)
 

Public Attributes

F32 m00
 
F32 m10
 
F32 m01
 
F32 m11
 

Detailed Description

Definition at line 631 of file Math.hpp.

Constructor & Destructor Documentation

FW_CUDA_FUNC FW::Mat2f::Mat2f ( void  )
inline

Definition at line 634 of file Math.hpp.

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

Definition at line 635 of file Math.hpp.

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

Definition at line 641 of file Math.hpp.

Member Function Documentation

static FW_CUDA_FUNC Mat2f FW::Mat2f::fromPtr ( const F32 *  ptr)
inlinestatic

Definition at line 639 of file Math.hpp.

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

Definition at line 637 of file Math.hpp.

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

Definition at line 638 of file Math.hpp.

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

Definition at line 642 of file Math.hpp.

Member Data Documentation

F32 FW::Mat2f::m00

Definition at line 645 of file Math.hpp.

F32 FW::Mat2f::m01

Definition at line 646 of file Math.hpp.

F32 FW::Mat2f::m10

Definition at line 645 of file Math.hpp.

F32 FW::Mat2f::m11

Definition at line 646 of file Math.hpp.


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