geomc 1.0
A c++ linear algebra template library
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
VecBase< T, N > Class Template Reference
Inheritance diagram for VecBase< T, N >:
VecCommon< T, 4, Quat< T > > VecCommon< T, N, Vec< T, N > > VecCommon< T, 2, Vec< T, 2 > > VecCommon< T, 3, Vec< T, 3 > > VecCommon< T, 4, Vec< T, 4 > > VecCommon< T, N, VType > Quat< T > Vec< T, N > Vec< T, 2 > Vec< T, 3 > Vec< T, 4 >

Public Member Functions

const T & get (index_t idx) const
 
T & get (index_t idx)
 
const T * begin () const
 
const T * end () const
 
T * begin ()
 
T * end ()
 

Protected Member Functions

constexpr VecBase (T a)
 
constexpr VecBase (const T a[N])
 

Protected Attributes

v [N]
 

Member Function Documentation

◆ begin() [1/2]

T * begin ( )
inline
Returns
A writeable iterator pointing at the first element.

◆ begin() [2/2]

const T * begin ( ) const
inline
Returns
A read-only iterator pointing at the first element.

◆ end() [1/2]

T * end ( )
inline
Returns
A writeable iterator pointing just beyond the last element.

◆ end() [2/2]

const T * end ( ) const
inline
Returns
A read-only iterator pointing just beyond the last element.

◆ get() [1/2]

T & get ( index_t  idx)
inline

Get the element at index idx.

Parameters
idxIndex of element.
Returns
A reference to the element at idx.

◆ get() [2/2]

const T & get ( index_t  idx) const
inline

Get the element at index idx.

Parameters
idxIndex of element.
Returns
A const reference to the element at idx.

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