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

#include <Math.hpp>

Inherits FW::VectorBase< S32, 4, Vec4i >, and int4.

Public Member Functions

FW_CUDA_FUNC Vec4i (void)
 
FW_CUDA_FUNC Vec4i (S32 a)
 
FW_CUDA_FUNC Vec4i (S32 xx, S32 yy, S32 zz, S32 ww)
 
FW_CUDA_FUNC Vec4i (const Vec2i &xy, S32 zz, S32 ww)
 
FW_CUDA_FUNC Vec4i (const Vec3i &xyz, S32 ww)
 
FW_CUDA_FUNC Vec4i (const Vec2i &xy, const Vec2i &zw)
 
FW_CUDA_FUNC const S32getPtr (void) const
 
FW_CUDA_FUNC S32getPtr (void)
 
FW_CUDA_FUNC Vec2i getXY (void) const
 
FW_CUDA_FUNC Vec3i getXYZ (void) const
 
FW_CUDA_FUNC Vec3i getXYW (void) const
 
template<class V >
FW_CUDA_FUNC Vec4i (const VectorBase< S32, 4, V > &v)
 
template<class V >
FW_CUDA_FUNC Vec4ioperator= (const VectorBase< S32, 4, V > &v)
 
- Public Member Functions inherited from FW::VectorBase< S32, 4, Vec4i >
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 Vec4i normalized (S32len=(S32) 1) const
 
FW_CUDA_FUNC void normalize (S32len=(S32) 1)
 
FW_CUDA_FUNC S32 min (void) const
 
FW_CUDA_FUNC Vec4i min (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC S32 max (void) const
 
FW_CUDA_FUNC Vec4i max (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC S32 sum (void) const
 
FW_CUDA_FUNC Vec4i 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 Vec4ioperator= (const S32 &a)
 
FW_CUDA_FUNC Vec4ioperator= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec4ioperator+= (const S32 &a)
 
FW_CUDA_FUNC Vec4ioperator+= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec4ioperator-= (const S32 &a)
 
FW_CUDA_FUNC Vec4ioperator-= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec4ioperator*= (const S32 &a)
 
FW_CUDA_FUNC Vec4ioperator*= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec4ioperator/= (const S32 &a)
 
FW_CUDA_FUNC Vec4ioperator/= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec4ioperator%= (const S32 &a)
 
FW_CUDA_FUNC Vec4ioperator%= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec4ioperator&= (const S32 &a)
 
FW_CUDA_FUNC Vec4ioperator&= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec4ioperator|= (const S32 &a)
 
FW_CUDA_FUNC Vec4ioperator|= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec4ioperator^= (const S32 &a)
 
FW_CUDA_FUNC Vec4ioperator^= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec4ioperator<<= (const S32 &a)
 
FW_CUDA_FUNC Vec4ioperator<<= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec4ioperator>>= (const S32 &a)
 
FW_CUDA_FUNC Vec4ioperator>>= (const VectorBase< S32, L, V > &v)
 
FW_CUDA_FUNC Vec4i operator+ (void) const
 
FW_CUDA_FUNC Vec4i operator+ (const S32 &a) const
 
FW_CUDA_FUNC Vec4i operator+ (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec4i operator- (void) const
 
FW_CUDA_FUNC Vec4i operator- (const S32 &a) const
 
FW_CUDA_FUNC Vec4i operator- (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec4i operator~ (void) const
 
FW_CUDA_FUNC Vec4i operator* (const S32 &a) const
 
FW_CUDA_FUNC Vec4i operator* (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec4i operator/ (const S32 &a) const
 
FW_CUDA_FUNC Vec4i operator/ (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec4i operator% (const S32 &a) const
 
FW_CUDA_FUNC Vec4i operator% (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec4i operator& (const S32 &a) const
 
FW_CUDA_FUNC Vec4i operator& (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec4i operator| (const S32 &a) const
 
FW_CUDA_FUNC Vec4i operator| (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec4i operator^ (const S32 &a) const
 
FW_CUDA_FUNC Vec4i operator^ (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec4i operator<< (const S32 &a) const
 
FW_CUDA_FUNC Vec4i operator<< (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec4i operator>> (const S32 &a) const
 
FW_CUDA_FUNC Vec4i operator>> (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC S32 dot (const VectorBase< S32, L, V > &v) const
 
FW_CUDA_FUNC Vec4i 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 Vec4i fromPtr (const S32 *ptr)
 

Detailed Description

Definition at line 277 of file Math.hpp.

Constructor & Destructor Documentation

FW_CUDA_FUNC FW::Vec4i::Vec4i ( void  )
inline

Definition at line 280 of file Math.hpp.

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

Definition at line 281 of file Math.hpp.

FW_CUDA_FUNC FW::Vec4i::Vec4i ( S32  xx,
S32  yy,
S32  zz,
S32  ww 
)
inline

Definition at line 282 of file Math.hpp.

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

Definition at line 283 of file Math.hpp.

FW_CUDA_FUNC FW::Vec4i::Vec4i ( const Vec3i xyz,
S32  ww 
)
inline

Definition at line 284 of file Math.hpp.

FW_CUDA_FUNC FW::Vec4i::Vec4i ( const Vec2i xy,
const Vec2i zw 
)
inline

Definition at line 285 of file Math.hpp.

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

Definition at line 295 of file Math.hpp.

Member Function Documentation

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

Definition at line 289 of file Math.hpp.

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

Definition at line 287 of file Math.hpp.

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

Definition at line 288 of file Math.hpp.

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

Definition at line 291 of file Math.hpp.

FW_CUDA_FUNC Vec3i FW::Vec4i::getXYW ( void  ) const
inline

Definition at line 293 of file Math.hpp.

FW_CUDA_FUNC Vec3i FW::Vec4i::getXYZ ( void  ) const
inline

Definition at line 292 of file Math.hpp.

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

Definition at line 296 of file Math.hpp.


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