Skip to content

Struct linalg::vec< T, 3 >

template <class T>

ClassList > linalg > vec< T, 3 >

Public Attributes

Type Name
T x
T y
T z

Public Functions

Type Name
constexpr operator U () const
constexpr const T & operator[] (int i) const
LINALG_CONSTEXPR14 T & operator[] (int i)
constexpr vec ()
constexpr vec (const T & x_, const T & y_, const T & z_)
constexpr vec (const vec< T, 2 > & xy, const T & z_)
constexpr vec (const T & s)
constexpr vec (const T * p)
constexpr vec (const vec< U, 3 > & v)
constexpr vec (const U & u)
constexpr const vec< T, 2 > & xy () const
vec< T, 2 > & xy ()

Public Attributes Documentation

variable x

T linalg::vec< T, 3 >::x;

variable y

T linalg::vec< T, 3 >::y;

variable z

T linalg::vec< T, 3 >::z;

Public Functions Documentation

function operator U

template<class U, class>
inline constexpr linalg::vec< T, 3 >::operator U () const

function operator[]

inline constexpr const T & linalg::vec< T, 3 >::operator[] (
    int i
) const

function operator[]

inline LINALG_CONSTEXPR14 T & linalg::vec< T, 3 >::operator[] (
    int i
) 

function vec [1/7]

inline constexpr linalg::vec< T, 3 >::vec () 

function vec [2/7]

inline constexpr linalg::vec< T, 3 >::vec (
    const T & x_,
    const T & y_,
    const T & z_
) 

function vec [3/7]

inline constexpr linalg::vec< T, 3 >::vec (
    const vec< T, 2 > & xy,
    const T & z_
) 

function vec [4/7]

inline explicit constexpr linalg::vec< T, 3 >::vec (
    const T & s
) 

function vec [5/7]

inline explicit constexpr linalg::vec< T, 3 >::vec (
    const T * p
) 

function vec [6/7]

template<class U>
inline explicit constexpr linalg::vec< T, 3 >::vec (
    const vec< U, 3 > & v
) 

function vec [7/7]

template<class U, class>
inline constexpr linalg::vec< T, 3 >::vec (
    const U & u
) 

function xy [1/2]

inline constexpr const vec< T, 2 > & linalg::vec< T, 3 >::xy () const

function xy [2/2]

inline vec< T, 2 > & linalg::vec< T, 3 >::xy () 


The documentation for this class was generated from the following file common/linalg.hpp