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

#include <Math.hpp>

Inherits FW::VectorBase< F64, 2, Vec2d >, and double2.

Public Member Functions

FW_CUDA_FUNC Vec2d (void)
 
FW_CUDA_FUNC Vec2d (F64 a)
 
FW_CUDA_FUNC Vec2d (F64 xx, F64 yy)
 
FW_CUDA_FUNC Vec2d (const Vec2i &v)
 
FW_CUDA_FUNC Vec2d (const Vec2f &v)
 
FW_CUDA_FUNC const F64getPtr (void) const
 
FW_CUDA_FUNC F64getPtr (void)
 
FW_CUDA_FUNC operator Vec2i (void) const
 
FW_CUDA_FUNC operator Vec2f (void) const
 
FW_CUDA_FUNC Vec2d perpendicular (void) const
 
FW_CUDA_FUNC F64 cross (const Vec2d &v) const
 
template<class V >
FW_CUDA_FUNC Vec2d (const VectorBase< F64, 2, V > &v)
 
template<class V >
FW_CUDA_FUNC Vec2doperator= (const VectorBase< F64, 2, V > &v)
 
- Public Member Functions inherited from FW::VectorBase< F64, 2, Vec2d >
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 Vec2d normalized (F64len=(F64) 1) const
 
FW_CUDA_FUNC void normalize (F64len=(F64) 1)
 
FW_CUDA_FUNC F64 min (void) const
 
FW_CUDA_FUNC Vec2d min (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC F64 max (void) const
 
FW_CUDA_FUNC Vec2d max (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC F64 sum (void) const
 
FW_CUDA_FUNC Vec2d 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 Vec2doperator= (const F64 &a)
 
FW_CUDA_FUNC Vec2doperator= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec2doperator+= (const F64 &a)
 
FW_CUDA_FUNC Vec2doperator+= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec2doperator-= (const F64 &a)
 
FW_CUDA_FUNC Vec2doperator-= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec2doperator*= (const F64 &a)
 
FW_CUDA_FUNC Vec2doperator*= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec2doperator/= (const F64 &a)
 
FW_CUDA_FUNC Vec2doperator/= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec2doperator%= (const F64 &a)
 
FW_CUDA_FUNC Vec2doperator%= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec2doperator&= (const F64 &a)
 
FW_CUDA_FUNC Vec2doperator&= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec2doperator|= (const F64 &a)
 
FW_CUDA_FUNC Vec2doperator|= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec2doperator^= (const F64 &a)
 
FW_CUDA_FUNC Vec2doperator^= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec2doperator<<= (const F64 &a)
 
FW_CUDA_FUNC Vec2doperator<<= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec2doperator>>= (const F64 &a)
 
FW_CUDA_FUNC Vec2doperator>>= (const VectorBase< F64, L, V > &v)
 
FW_CUDA_FUNC Vec2d operator+ (void) const
 
FW_CUDA_FUNC Vec2d operator+ (const F64 &a) const
 
FW_CUDA_FUNC Vec2d operator+ (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec2d operator- (void) const
 
FW_CUDA_FUNC Vec2d operator- (const F64 &a) const
 
FW_CUDA_FUNC Vec2d operator- (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec2d operator~ (void) const
 
FW_CUDA_FUNC Vec2d operator* (const F64 &a) const
 
FW_CUDA_FUNC Vec2d operator* (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec2d operator/ (const F64 &a) const
 
FW_CUDA_FUNC Vec2d operator/ (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec2d operator% (const F64 &a) const
 
FW_CUDA_FUNC Vec2d operator% (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec2d operator& (const F64 &a) const
 
FW_CUDA_FUNC Vec2d operator& (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec2d operator| (const F64 &a) const
 
FW_CUDA_FUNC Vec2d operator| (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec2d operator^ (const F64 &a) const
 
FW_CUDA_FUNC Vec2d operator^ (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec2d operator<< (const F64 &a) const
 
FW_CUDA_FUNC Vec2d operator<< (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec2d operator>> (const F64 &a) const
 
FW_CUDA_FUNC Vec2d operator>> (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC F64 dot (const VectorBase< F64, L, V > &v) const
 
FW_CUDA_FUNC Vec2d 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 Vec2d fromPtr (const F64 *ptr)
 

Detailed Description

Definition at line 379 of file Math.hpp.

Constructor & Destructor Documentation

FW_CUDA_FUNC FW::Vec2d::Vec2d ( void  )
inline

Definition at line 382 of file Math.hpp.

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

Definition at line 383 of file Math.hpp.

FW_CUDA_FUNC FW::Vec2d::Vec2d ( F64  xx,
F64  yy 
)
inline

Definition at line 384 of file Math.hpp.

FW_CUDA_FUNC FW::Vec2d::Vec2d ( const Vec2i v)
inline

Definition at line 385 of file Math.hpp.

FW_CUDA_FUNC FW::Vec2d::Vec2d ( const Vec2f v)
inline

Definition at line 386 of file Math.hpp.

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

Definition at line 398 of file Math.hpp.

Member Function Documentation

FW_CUDA_FUNC F64 FW::Vec2d::cross ( const Vec2d v) const
inline

Definition at line 396 of file Math.hpp.

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

Definition at line 390 of file Math.hpp.

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

Definition at line 388 of file Math.hpp.

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

Definition at line 389 of file Math.hpp.

FW_CUDA_FUNC FW::Vec2d::operator Vec2f ( void  ) const
inline

Definition at line 393 of file Math.hpp.

FW_CUDA_FUNC FW::Vec2d::operator Vec2i ( void  ) const
inline

Definition at line 392 of file Math.hpp.

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

Definition at line 399 of file Math.hpp.

FW_CUDA_FUNC Vec2d FW::Vec2d::perpendicular ( void  ) const
inline

Definition at line 395 of file Math.hpp.


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