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

#include <Math.hpp>

Inherits FW::VectorBase< S32, 3, Vec3i >, and int3.

Public Member Functions

FW_CUDA_FUNC Vec3i (void)
 
FW_CUDA_FUNC Vec3i (S32 a)
 
FW_CUDA_FUNC Vec3i (S32 xx, S32 yy, S32 zz)
 
FW_CUDA_FUNC Vec3i (const Vec2i &xy, S32 zz)
 
FW_CUDA_FUNC const S32getPtr (void) const
 
FW_CUDA_FUNC S32getPtr (void)
 
FW_CUDA_FUNC Vec2i getXY (void) const
 
template<class V >
FW_CUDA_FUNC Vec3i (const VectorBase< S32, 3, V > &v)
 
template<class V >
FW_CUDA_FUNC Vec3ioperator= (const VectorBase< S32, 3, V > &v)
 
- Public Member Functions inherited from FW::VectorBase< S32, 3, Vec3i >
FW_CUDA_FUNC VectorBase (void)
 
FW_CUDA_FUNC const S32getPtr (void) const
 
FW_CUDA_FUNC S32getPtr (void)
 
FW_CUDA_FUNC const S32get (int idx) const
 
FW_CUDA_FUNC S32get (int idx)
 
FW_CUDA_FUNC S32 set (int idx, const S32 &a)
 
FW_CUDA_FUNC void set (const S32 &a)
 
FW_CUDA_FUNC void set (const S32 *ptr)
 
FW_CUDA_FUNC void set (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC void setZero (void)
 
void print (void) const
 
void sprint (char *vec, size_t s) const
 
FW_CUDA_FUNC bool isZero (void) const
 
FW_CUDA_FUNC S32 lenSqr (void) const
 
FW_CUDA_FUNC S32 length (void) const
 
FW_CUDA_FUNC Vec3i normalized (S32len=(S32) 1) const
 
FW_CUDA_FUNC void normalize (S32len=(S32) 1)
 
FW_CUDA_FUNC S32 min (void) const
 
FW_CUDA_FUNC Vec3i min (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC S32 max (void) const
 
FW_CUDA_FUNC Vec3i max (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC S32 sum (void) const
 
FW_CUDA_FUNC Vec3i abs (void) const
 
FW_CUDA_FUNC Vector< S32, L+1 > toHomogeneous (void) const
 
FW_CUDA_FUNC Vector< S32, L-1 > toCartesian (void) const
 
FW_CUDA_FUNC const S32operator[] (int idx) const
 
FW_CUDA_FUNC S32operator[] (int idx)
 
FW_CUDA_FUNC Vec3ioperator= (const S32 &a)
 
FW_CUDA_FUNC Vec3ioperator= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec3ioperator+= (const S32 &a)
 
FW_CUDA_FUNC Vec3ioperator+= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec3ioperator-= (const S32 &a)
 
FW_CUDA_FUNC Vec3ioperator-= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec3ioperator*= (const S32 &a)
 
FW_CUDA_FUNC Vec3ioperator*= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec3ioperator/= (const S32 &a)
 
FW_CUDA_FUNC Vec3ioperator/= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec3ioperator%= (const S32 &a)
 
FW_CUDA_FUNC Vec3ioperator%= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec3ioperator&= (const S32 &a)
 
FW_CUDA_FUNC Vec3ioperator&= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec3ioperator|= (const S32 &a)
 
FW_CUDA_FUNC Vec3ioperator|= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec3ioperator^= (const S32 &a)
 
FW_CUDA_FUNC Vec3ioperator^= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec3ioperator<<= (const S32 &a)
 
FW_CUDA_FUNC Vec3ioperator<<= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec3ioperator>>= (const S32 &a)
 
FW_CUDA_FUNC Vec3ioperator>>= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec3i operator+ (void) const
 
FW_CUDA_FUNC Vec3i operator+ (const S32 &a) const
 
FW_CUDA_FUNC Vec3i operator+ (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec3i operator- (void) const
 
FW_CUDA_FUNC Vec3i operator- (const S32 &a) const
 
FW_CUDA_FUNC Vec3i operator- (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec3i operator~ (void) const
 
FW_CUDA_FUNC Vec3i operator* (const S32 &a) const
 
FW_CUDA_FUNC Vec3i operator* (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec3i operator/ (const S32 &a) const
 
FW_CUDA_FUNC Vec3i operator/ (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec3i operator% (const S32 &a) const
 
FW_CUDA_FUNC Vec3i operator% (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec3i operator& (const S32 &a) const
 
FW_CUDA_FUNC Vec3i operator& (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec3i operator| (const S32 &a) const
 
FW_CUDA_FUNC Vec3i operator| (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec3i operator^ (const S32 &a) const
 
FW_CUDA_FUNC Vec3i operator^ (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec3i operator<< (const S32 &a) const
 
FW_CUDA_FUNC Vec3i operator<< (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec3i operator>> (const S32 &a) const
 
FW_CUDA_FUNC Vec3i operator>> (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC S32 dot (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec3i clamp (const VectorBase< S32, L, V > &lo, const VectorBase< S32, L, W > &hi) const
 
FW_CUDA_FUNC bool operator== (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC bool operator!= (const VectorBase< S32, L, V > &v) const
 

Static Public Member Functions

static FW_CUDA_FUNC Vec3i fromPtr (const S32 *ptr)
 

Detailed Description

Definition at line 257 of file Math.hpp.

Constructor & Destructor Documentation

FW_CUDA_FUNC FW::Vec3i::Vec3i ( void  )
inline

Definition at line 260 of file Math.hpp.

FW_CUDA_FUNC FW::Vec3i::Vec3i ( S32  a)
inline

Definition at line 261 of file Math.hpp.

FW_CUDA_FUNC FW::Vec3i::Vec3i ( S32  xx,
S32  yy,
S32  zz 
)
inline

Definition at line 262 of file Math.hpp.

FW_CUDA_FUNC FW::Vec3i::Vec3i ( const Vec2i xy,
S32  zz 
)
inline

Definition at line 263 of file Math.hpp.

template<class V >
FW_CUDA_FUNC FW::Vec3i::Vec3i ( const VectorBase< S32, 3, V > &  v)
inline

Definition at line 271 of file Math.hpp.

Member Function Documentation

static FW_CUDA_FUNC Vec3i FW::Vec3i::fromPtr ( const S32 ptr)
inlinestatic

Definition at line 267 of file Math.hpp.

FW_CUDA_FUNC const S32* FW::Vec3i::getPtr ( void  ) const
inline

Definition at line 265 of file Math.hpp.

FW_CUDA_FUNC S32* FW::Vec3i::getPtr ( void  )
inline

Definition at line 266 of file Math.hpp.

FW_CUDA_FUNC Vec2i FW::Vec3i::getXY ( void  ) const
inline

Definition at line 269 of file Math.hpp.

template<class V >
FW_CUDA_FUNC Vec3i& FW::Vec3i::operator= ( const VectorBase< S32, 3, V > &  v)
inline

Definition at line 272 of file Math.hpp.


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