Go to the documentation of this file.
21 #ifndef __triple_hpp__
22 #define __triple_hpp__
72 template <
typename T2>
75 this->x_ =
static_cast<T
>(rhs.
x_);
76 this->y_ =
static_cast<T
>(rhs.
y_);
77 this->z_ =
static_cast<T
>(rhs.
z_);
84 x_(static_cast<T>(src.
x_)),
85 y_(static_cast<T>(src.
y_)),
86 z_(static_cast<T>(src.
z_))
126 return makeUnique<triple<T>>(*this);
const INLINE_FUNCTION_HD T & y() const
INLINE_FUNCTION_HD void operator+=(const triple &oprnd2)
INLINE_FUNCTION_HD void operator*=(const triple &oprnd2)
INLINE_FUNCTION uniquePtr< triple< T > > clone() const
INLINE_FUNCTION_HD triple(const T &v)
INLINE_FUNCTION_HD triple(const T &x, const T &y, const T &z)
INLINE_FUNCTION_HD T & y()
const INLINE_FUNCTION_HD T & x() const
INLINE_FUNCTION triple< T > * clonePtr() const
INLINE_FUNCTION_HD triple operator-() const
const INLINE_FUNCTION_HD T & z() const
INLINE_FUNCTION_HD void operator-=(const triple &oprnd2)
INLINE_FUNCTION_HD triple(const triple< T2 > &src)
INLINE_FUNCTION_HD void normalize()
INLINE_FUNCTION_HD T & z()
INLINE_FUNCTION_HD triple< T > & operator=(const triple< T2 > &rhs)
INLINE_FUNCTION_HD T & x()
#define INLINE_FUNCTION_HD
INLINE_FUNCTION_HD triple operator+() const
INLINE_FUNCTION_HD bool equal(const real &s1, const real &s2)
INLINE_FUNCTION_HD void operator/=(const triple &oprnd2)
INLINE_FUNCTION_HD triple()
INLINE_FUNCTION_HD T length() const