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

Public Types

enum  { dims = 2 }
 
typedef T scalar_t
 

Public Member Functions

__both__ vec_t (const T &t)
 
__both__ vec_t (const T &x, const T &y)
 
__both__ vec_t< T, 2 > & operator= (const vec_t< T, 2 > &other)
 
template<typename OT >
__both__ vec_t (const vec_t< OT, 2 > &o)
 
__both__ T & operator[] (size_t dim)
 
__both__ const T & operator[] (size_t dim) const
 

Public Attributes

union owl::common::vec_t< T, 2 >:: { ... }  
 
x
 
y
 
s
 
t
 
u
 
v
 

Constructor & Destructor Documentation

◆ vec_t()

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

construct 2-vector from 2-vector of another type

Member Function Documentation

◆ operator=()

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

assignment operator


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