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

#include <Math.hpp>

Inherits FW::VectorBase< F64, 3, Vec3d >, and double3.

Public Member Functions

FW_CUDA_FUNC Vec3d (void)
 
FW_CUDA_FUNC Vec3d (F64 a)
 
FW_CUDA_FUNC Vec3d (F64 xx, F64 yy, F64 zz)
 
FW_CUDA_FUNC Vec3d (const Vec2d &xy, F64 zz)
 
FW_CUDA_FUNC Vec3d (const Vec3i &v)
 
FW_CUDA_FUNC Vec3d (const Vec3f &v)
 
FW_CUDA_FUNC const F64getPtr (void) const
 
FW_CUDA_FUNC F64getPtr (void)
 
FW_CUDA_FUNC operator Vec3i (void) const
 
FW_CUDA_FUNC operator Vec3f (void) const
 
FW_CUDA_FUNC Vec2d getXY (void) const
 
FW_CUDA_FUNC Vec3d cross (const Vec3d &v) const
 
template<class V >
FW_CUDA_FUNC Vec3d (const VectorBase< F64, 3, V > &v)
 
template<class V >
FW_CUDA_FUNC Vec3doperator= (const VectorBase< F64, 3, V > &v)
 
- Public Member Functions inherited from FW::VectorBase< F64, 3, Vec3d >
FW_CUDA_FUNC VectorBase (void)
 
FW_CUDA_FUNC const F64getPtr (void) const
 
FW_CUDA_FUNC F64getPtr (void)
 
FW_CUDA_FUNC const F64get (int idx) const
 
FW_CUDA_FUNC F64get (int idx)
 
FW_CUDA_FUNC F64 set (int idx, const F64 &a)
 
FW_CUDA_FUNC void set (const F64 &a)
 
FW_CUDA_FUNC void set (const F64 *ptr)
 
FW_CUDA_FUNC void set (const VectorBase< F64, 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 F64 lenSqr (void) const
 
FW_CUDA_FUNC F64 length (void) const
 
FW_CUDA_FUNC Vec3d normalized (F64len=(F64) 1) const
 
FW_CUDA_FUNC void normalize (F64len=(F64) 1)
 
FW_CUDA_FUNC F64 min (void) const
 
FW_CUDA_FUNC Vec3d min (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC F64 max (void) const
 
FW_CUDA_FUNC Vec3d max (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC F64 sum (void) const
 
FW_CUDA_FUNC Vec3d abs (void) const
 
FW_CUDA_FUNC Vector< F64, L+1 > toHomogeneous (void) const
 
FW_CUDA_FUNC Vector< F64, L-1 > toCartesian (void) const
 
FW_CUDA_FUNC const F64operator[] (int idx) const
 
FW_CUDA_FUNC F64operator[] (int idx)
 
FW_CUDA_FUNC Vec3doperator= (const F64 &a)
 
FW_CUDA_FUNC Vec3doperator= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec3doperator+= (const F64 &a)
 
FW_CUDA_FUNC Vec3doperator+= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec3doperator-= (const F64 &a)
 
FW_CUDA_FUNC Vec3doperator-= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec3doperator*= (const F64 &a)
 
FW_CUDA_FUNC Vec3doperator*= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec3doperator/= (const F64 &a)
 
FW_CUDA_FUNC Vec3doperator/= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec3doperator%= (const F64 &a)
 
FW_CUDA_FUNC Vec3doperator%= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec3doperator&= (const F64 &a)
 
FW_CUDA_FUNC Vec3doperator&= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec3doperator|= (const F64 &a)
 
FW_CUDA_FUNC Vec3doperator|= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec3doperator^= (const F64 &a)
 
FW_CUDA_FUNC Vec3doperator^= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec3doperator<<= (const F64 &a)
 
FW_CUDA_FUNC Vec3doperator<<= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec3doperator>>= (const F64 &a)
 
FW_CUDA_FUNC Vec3doperator>>= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec3d operator+ (void) const
 
FW_CUDA_FUNC Vec3d operator+ (const F64 &a) const
 
FW_CUDA_FUNC Vec3d operator+ (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec3d operator- (void) const
 
FW_CUDA_FUNC Vec3d operator- (const F64 &a) const
 
FW_CUDA_FUNC Vec3d operator- (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec3d operator~ (void) const
 
FW_CUDA_FUNC Vec3d operator* (const F64 &a) const
 
FW_CUDA_FUNC Vec3d operator* (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec3d operator/ (const F64 &a) const
 
FW_CUDA_FUNC Vec3d operator/ (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec3d operator% (const F64 &a) const
 
FW_CUDA_FUNC Vec3d operator% (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec3d operator& (const F64 &a) const
 
FW_CUDA_FUNC Vec3d operator& (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec3d operator| (const F64 &a) const
 
FW_CUDA_FUNC Vec3d operator| (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec3d operator^ (const F64 &a) const
 
FW_CUDA_FUNC Vec3d operator^ (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec3d operator<< (const F64 &a) const
 
FW_CUDA_FUNC Vec3d operator<< (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec3d operator>> (const F64 &a) const
 
FW_CUDA_FUNC Vec3d operator>> (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC F64 dot (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec3d clamp (const VectorBase< F64, L, V > &lo, const VectorBase< F64, L, W > &hi) const
 
FW_CUDA_FUNC bool operator== (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC bool operator!= (const VectorBase< F64, L, V > &v) const
 

Static Public Member Functions

static FW_CUDA_FUNC Vec3d fromPtr (const F64 *ptr)
 

Detailed Description

Definition at line 404 of file Math.hpp.

Constructor & Destructor Documentation

FW_CUDA_FUNC FW::Vec3d::Vec3d ( void  )
inline

Definition at line 407 of file Math.hpp.

FW_CUDA_FUNC FW::Vec3d::Vec3d ( F64  a)
inline

Definition at line 408 of file Math.hpp.

FW_CUDA_FUNC FW::Vec3d::Vec3d ( F64  xx,
F64  yy,
F64  zz 
)
inline

Definition at line 409 of file Math.hpp.

FW_CUDA_FUNC FW::Vec3d::Vec3d ( const Vec2d xy,
F64  zz 
)
inline

Definition at line 410 of file Math.hpp.

FW_CUDA_FUNC FW::Vec3d::Vec3d ( const Vec3i v)
inline

Definition at line 411 of file Math.hpp.

FW_CUDA_FUNC FW::Vec3d::Vec3d ( const Vec3f v)
inline

Definition at line 412 of file Math.hpp.

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

Definition at line 424 of file Math.hpp.

Member Function Documentation

FW_CUDA_FUNC Vec3d FW::Vec3d::cross ( const Vec3d v) const
inline

Definition at line 422 of file Math.hpp.

static FW_CUDA_FUNC Vec3d FW::Vec3d::fromPtr ( const F64 ptr)
inlinestatic

Definition at line 416 of file Math.hpp.

FW_CUDA_FUNC const F64* FW::Vec3d::getPtr ( void  ) const
inline

Definition at line 414 of file Math.hpp.

FW_CUDA_FUNC F64* FW::Vec3d::getPtr ( void  )
inline

Definition at line 415 of file Math.hpp.

FW_CUDA_FUNC Vec2d FW::Vec3d::getXY ( void  ) const
inline

Definition at line 420 of file Math.hpp.

FW_CUDA_FUNC FW::Vec3d::operator Vec3f ( void  ) const
inline

Definition at line 419 of file Math.hpp.

FW_CUDA_FUNC FW::Vec3d::operator Vec3i ( void  ) const
inline

Definition at line 418 of file Math.hpp.

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

Definition at line 425 of file Math.hpp.


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