Free Electron
Public Member Functions | Protected Attributes | List of all members
fe::Vector< 4, T > Class Template Reference

Partially specialized 4-component vector intended for spatial use. More...

#include <Vector4.h>

Inheritance diagram for fe::Vector< 4, T >:
Inheritance graph
[legend]

Public Member Functions

 Vector (const Vector< 4, T > &other)
 
template<typename U >
 Vector (const Vector< 4, U > &other)
 
 Vector (const Vector< 3, T > &other)
 
template<typename U >
 Vector (const Vector< 3, U > &other)
 
 Vector (const Vector< 2, T > &other)
 
template<typename U >
 Vector (const Vector< 2, U > &other)
 
 Vector (const T *array)
 
 Vector (T x, T y, T z=T(0), T w=T(0))
 
Vector< 4, T > & operator= (const Vector< 4, T > &other)
 
template<typename U >
Vector< 4, T > & operator= (const Vector< 4, U > &other)
 
Vector< 4, T > & operator= (const Vector< 3, T > &other)
 
template<typename U >
Vector< 4, T > & operator= (const Vector< 3, U > &other)
 
Vector< 4, T > & operator= (const Vector< 2, T > &other)
 
template<typename U >
Vector< 4, T > & operator= (const Vector< 2, U > &other)
 
Vector< 4, T > & operator= (const T *array)
 
const T & operator[] (U32 index) const
 
T & operator[] (U32 index)
 Access internal component. More...
 
Vector< 4, T > & set4 (T x=T(0), T y=T(0), T z=T(0), T w=T(0))
 
void get4 (T array[4])
 
const Raw temp (void) const
 

Protected Attributes

m_data [4]
 

Detailed Description

template<typename T>
class fe::Vector< 4, T >

Partially specialized 4-component vector intended for spatial use.

Member Function Documentation

◆ operator[]()

template<class T >
T & fe::Vector< 4, T >::operator[] ( U32  index)
inline

Access internal component.

Warning, this provides internal access and should be limited to immediate use only.


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