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, 4 > Struct Template Reference

Public Types

enum  { dims = 4 }
 
typedef T scalar_t
 

Public Member Functions

__both__ vec_t (const T &t)
 
__both__ vec_t (const vec_t< T, 3 > &xyz, const T &_w)
 
__both__ vec_t (const T &_x, const T &_y, const T &_z, const T &_w)
 
template<typename OT >
__both__ vec_t (const vec_t< OT, 4 > &o)
 
__both__ vec_t (const vec_t< T, 4 > &o)
 
__both__ vec_t< T, 4 > & operator= (const vec_t< T, 4 > &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, 4 > make_from (const vec_t< OT, 4 > &v, const Lambda &lambda)
 

Public Attributes

x
 
y
 
z
 
w
 

Constructor & Destructor Documentation

◆ vec_t()

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

construct 3-vector from 3-vector of another type

Member Function Documentation

◆ operator=()

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

assignment operator


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