Skip to content

Struct linalg::vec< T, 2 >

template <class T>

ClassList > linalg > vec< T, 2 >

Public Attributes

Type Name
T x
T y

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_)
constexpr vec (const T & s)
constexpr vec (const T * p)
constexpr vec (const vec< U, 2 > & v)
constexpr vec (const U & u)

Public Attributes Documentation

variable x

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

variable y

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

Public Functions Documentation

function operator U

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

function operator[]

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

function operator[]

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

function vec [1/6]

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

function vec [2/6]

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

function vec [3/6]

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

function vec [4/6]

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

function vec [5/6]

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

function vec [6/6]

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


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