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

#include <Math.hpp>

Inherits FW::MatrixBase< F32, 4, Mat4f >.

Public Member Functions

FW_CUDA_FUNC Mat4f (void)
 
FW_CUDA_FUNC Mat4f (F32 a)
 
FW_CUDA_FUNC const F32getPtr (void) const
 
FW_CUDA_FUNC F32getPtr (void)
 
Mat3f getXYZ (void) const
 
template<class V >
FW_CUDA_FUNC Mat4f (const MatrixBase< F32, 4, V > &v)
 
template<class V >
FW_CUDA_FUNC Mat4foperator= (const MatrixBase< F32, 4, V > &v)
 
- Public Member Functions inherited from FW::MatrixBase< F32, 4, Mat4f >
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 Mat4f fromPtr (const F32 *ptr)
 
static Mat4f fitToView (const Vec2f &pos, const Vec2f &size, const Vec2f &viewSize)
 
static Mat4f perspective (F32 fov, F32 nearDist, F32 farDist)
 
- Static Public Member Functions inherited from FW::MatrixBase< F32, 4, Mat4f >
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 m30
 
F32 m01
 
F32 m11
 
F32 m21
 
F32 m31
 
F32 m02
 
F32 m12
 
F32 m22
 
F32 m32
 
F32 m03
 
F32 m13
 
F32 m23
 
F32 m33
 

Detailed Description

Definition at line 676 of file Math.hpp.

Constructor & Destructor Documentation

FW_CUDA_FUNC FW::Mat4f::Mat4f ( void  )
inline

Definition at line 679 of file Math.hpp.

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

Definition at line 680 of file Math.hpp.

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

Definition at line 692 of file Math.hpp.

Member Function Documentation

Mat4f Mat4f::fitToView ( const Vec2f pos,
const Vec2f size,
const Vec2f viewSize 
)
static

Definition at line 66 of file Math.cpp.

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

Definition at line 684 of file Math.hpp.

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

Definition at line 682 of file Math.hpp.

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

Definition at line 683 of file Math.hpp.

Mat3f Mat4f::getXYZ ( void  ) const

Definition at line 56 of file Math.cpp.

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

Definition at line 693 of file Math.hpp.

Mat4f Mat4f::perspective ( F32  fov,
F32  nearDist,
F32  farDist 
)
static

Definition at line 79 of file Math.cpp.

Member Data Documentation

F32 FW::Mat4f::m00

Definition at line 696 of file Math.hpp.

F32 FW::Mat4f::m01

Definition at line 697 of file Math.hpp.

F32 FW::Mat4f::m02

Definition at line 698 of file Math.hpp.

F32 FW::Mat4f::m03

Definition at line 699 of file Math.hpp.

F32 FW::Mat4f::m10

Definition at line 696 of file Math.hpp.

F32 FW::Mat4f::m11

Definition at line 697 of file Math.hpp.

F32 FW::Mat4f::m12

Definition at line 698 of file Math.hpp.

F32 FW::Mat4f::m13

Definition at line 699 of file Math.hpp.

F32 FW::Mat4f::m20

Definition at line 696 of file Math.hpp.

F32 FW::Mat4f::m21

Definition at line 697 of file Math.hpp.

F32 FW::Mat4f::m22

Definition at line 698 of file Math.hpp.

F32 FW::Mat4f::m23

Definition at line 699 of file Math.hpp.

F32 FW::Mat4f::m30

Definition at line 696 of file Math.hpp.

F32 FW::Mat4f::m31

Definition at line 697 of file Math.hpp.

F32 FW::Mat4f::m32

Definition at line 698 of file Math.hpp.

F32 FW::Mat4f::m33

Definition at line 699 of file Math.hpp.


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