OWL
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
owl::common::vec_t< T, 3 > Struct Template Reference

Public Types

enum  { dims = 3 }
 
typedef T scalar_t
 

Public Member Functions

 vec_t (const vec_t &)=default
 
__both__ vec_t (const T &t)
 
__both__ vec_t (const T &_x, const T &_y, const T &_z)
 
__both__ vec_t (const vec_t< T, 4 > &v)
 
template<typename OT >
__both__ vec_t (const vec_t< OT, 3 > &o)
 
__both__ vec_t< T, 3 > yzx () const
 
__both__ vec_t< T, 3 > & operator= (const vec_t< T, 3 > &other)
 
__both__ T & operator[] (size_t dim)
 
__both__ const T & operator[] (size_t dim) const
 

Static Public Member Functions

template<typename OT , typename Lambda >
static __both__ vec_t< T, 3 > make_from (const vec_t< OT, 3 > &v, const Lambda &lambda)
 

Public Attributes

union owl::common::vec_t< T, 3 >:: { ... }  
 
x
 
y
 
z
 
r
 
s
 
t
 
u
 
v
 
w
 

Constructor & Destructor Documentation

◆ vec_t()

template<typename T >
template<typename OT >
__both__ owl::common::vec_t< T, 3 >::vec_t ( const vec_t< OT, 3 > &  o)
inlineexplicit

construct 3-vector from 3-vector of another type

Member Function Documentation

◆ operator=()

template<typename T >
__both__ vec_t< T, 3 > & owl::common::vec_t< T, 3 >::operator= ( const vec_t< T, 3 > &  other)
inline

assignment operator

◆ yzx()

template<typename T >
__both__ vec_t< T, 3 > owl::common::vec_t< T, 3 >::yzx ( ) const
inline

swizzle ...


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