#include <cyclic_vec.h>
Public Member Functions | |
| float | cross2d (const CyclicVecBase< DIM, NONCYCLIC, T > &a) const |
| template<typename... ArgList> | |
| void | cycle (const int res, const ArgList &...rest) |
| void | cycle (const CyclicVecBase< DIM, NONCYCLIC, T > &res) |
| template<typename... ArgList> | |
| void | cycleUnsigned (const int res, const ArgList &...rest) |
| void | cycleUnsigned (const CyclicVecBase< DIM, NONCYCLIC, T > &res) |
| template<typename T2 > | |
| CyclicVecBase (const CyclicVecBase< DIM, NONCYCLIC, T2 > &c) noexcept | |
| template<typename... ArgList> | |
| CyclicVecBase (const float &v, const ArgList &...args) noexcept | |
| template<typename... ArgList> | |
| CyclicVecBase (const int &v, const ArgList &...args) noexcept | |
| CyclicVecBase () noexcept | |
| float | distLine2d (const CyclicVecBase< DIM, NONCYCLIC, T > &a, const CyclicVecBase< DIM, NONCYCLIC, T > &b) const |
| float | distLinestrip2d (const CyclicVecBase< DIM, NONCYCLIC, T > &a, const CyclicVecBase< DIM, NONCYCLIC, T > &b) const |
| float | dot2d (const CyclicVecBase< DIM, NONCYCLIC, T > &a) const |
| float | gridToLenFactor () const |
| float | len () const |
| float | norm () const |
| template<typename T2 > | |
| bool | operator!= (const CyclicVecBase< DIM, NONCYCLIC, T2 > &v) const |
| size_t | operator() (const CyclicVecBase &key) const |
| template<typename T2 > | |
| CyclicVecBase< DIM, NONCYCLIC, T2 > | operator* (const CyclicVecBase< DIM, NONCYCLIC, T2 > &v) const |
| template<typename T2 > | |
| CyclicVecBase< DIM, NONCYCLIC, T2 > | operator+ (const CyclicVecBase< DIM, NONCYCLIC, T2 > &v) const |
| template<typename T2 > | |
| CyclicVecBase< DIM, NONCYCLIC, T2 > | operator- (const CyclicVecBase< DIM, NONCYCLIC, T2 > &v) const |
| template<typename T2 > | |
| bool | operator== (const CyclicVecBase< DIM, NONCYCLIC, T2 > &v) const |
| T & | operator[] (const int &x) |
| const T & | operator[] (const int &x) const |
| void | rotate (const float ang) |
| T | sqlen () const |
Protected Member Functions | |
| template<typename... ArgList> | |
| void | cycleElements (const int i, const int res, const ArgList &...rest) |
| void | cycleElements (const int i) |
| template<typename... ArgList> | |
| void | cycleUnsignedElements (const int i, const int res, const ArgList &...rest) |
| void | cycleUnsignedElements (const int i) |
| template<typename T2 , typename... ArgList> | |
| void | setElements (const int i, const T2 &first, const ArgList &...rest) noexcept |
| void | setElements (const int i) noexcept |
| static_assert (std::is_same< float, T >()||std::is_same< int, T >(),"T must be float or int") | |
Protected Attributes | |
| T | e_ [DIM] |
Definition at line 76 of file cyclic_vec.h.
| CyclicVecBase< DIM, NONCYCLIC, T >::CyclicVecBase | ( | const CyclicVecBase< DIM, NONCYCLIC, T2 > & | c | ) | [inline, explicit] |
Definition at line 135 of file cyclic_vec.h.
| CyclicVecBase< DIM, NONCYCLIC, T >::CyclicVecBase | ( | const float & | v, |
| const ArgList &... | args | ||
| ) | [inline, explicit] |
Definition at line 141 of file cyclic_vec.h.
| CyclicVecBase< DIM, NONCYCLIC, T >::CyclicVecBase | ( | const int & | v, |
| const ArgList &... | args | ||
| ) | [inline, explicit] |
Definition at line 146 of file cyclic_vec.h.
| CyclicVecBase< DIM, NONCYCLIC, T >::CyclicVecBase | ( | ) | [inline] |
Definition at line 150 of file cyclic_vec.h.
| float CyclicVecBase< DIM, NONCYCLIC, T >::cross2d | ( | const CyclicVecBase< DIM, NONCYCLIC, T > & | a | ) | const [inline] |
Definition at line 196 of file cyclic_vec.h.
| void CyclicVecBase< DIM, NONCYCLIC, T >::cycle | ( | const int | res, |
| const ArgList &... | rest | ||
| ) | [inline] |
Definition at line 272 of file cyclic_vec.h.
| void CyclicVecBase< DIM, NONCYCLIC, T >::cycle | ( | const CyclicVecBase< DIM, NONCYCLIC, T > & | res | ) | [inline] |
Definition at line 285 of file cyclic_vec.h.
| void CyclicVecBase< DIM, NONCYCLIC, T >::cycleElements | ( | const int | i, |
| const int | res, | ||
| const ArgList &... | rest | ||
| ) | [inline, protected] |
Definition at line 97 of file cyclic_vec.h.
| void CyclicVecBase< DIM, NONCYCLIC, T >::cycleElements | ( | const int | i | ) | [inline, protected] |
Definition at line 111 of file cyclic_vec.h.
| void CyclicVecBase< DIM, NONCYCLIC, T >::cycleUnsigned | ( | const int | res, |
| const ArgList &... | rest | ||
| ) | [inline] |
Definition at line 279 of file cyclic_vec.h.
| void CyclicVecBase< DIM, NONCYCLIC, T >::cycleUnsigned | ( | const CyclicVecBase< DIM, NONCYCLIC, T > & | res | ) | [inline] |
Definition at line 292 of file cyclic_vec.h.
| void CyclicVecBase< DIM, NONCYCLIC, T >::cycleUnsignedElements | ( | const int | i, |
| const int | res, | ||
| const ArgList &... | rest | ||
| ) | [inline, protected] |
Definition at line 116 of file cyclic_vec.h.
| void CyclicVecBase< DIM, NONCYCLIC, T >::cycleUnsignedElements | ( | const int | i | ) | [inline, protected] |
Definition at line 128 of file cyclic_vec.h.
| float CyclicVecBase< DIM, NONCYCLIC, T >::distLine2d | ( | const CyclicVecBase< DIM, NONCYCLIC, T > & | a, |
| const CyclicVecBase< DIM, NONCYCLIC, T > & | b | ||
| ) | const [inline] |
Definition at line 204 of file cyclic_vec.h.
| float CyclicVecBase< DIM, NONCYCLIC, T >::distLinestrip2d | ( | const CyclicVecBase< DIM, NONCYCLIC, T > & | a, |
| const CyclicVecBase< DIM, NONCYCLIC, T > & | b | ||
| ) | const [inline] |
Definition at line 210 of file cyclic_vec.h.
| float CyclicVecBase< DIM, NONCYCLIC, T >::dot2d | ( | const CyclicVecBase< DIM, NONCYCLIC, T > & | a | ) | const [inline] |
Definition at line 200 of file cyclic_vec.h.
| float CyclicVecBase< DIM, NONCYCLIC, T >::gridToLenFactor | ( | ) | const [inline] |
Definition at line 243 of file cyclic_vec.h.
| float CyclicVecBase< DIM, NONCYCLIC, T >::len | ( | ) | const [inline] |
Definition at line 239 of file cyclic_vec.h.
| float CyclicVecBase< DIM, NONCYCLIC, T >::norm | ( | ) | const [inline] |
Definition at line 248 of file cyclic_vec.h.
| bool CyclicVecBase< DIM, NONCYCLIC, T >::operator!= | ( | const CyclicVecBase< DIM, NONCYCLIC, T2 > & | v | ) | const [inline] |
Definition at line 162 of file cyclic_vec.h.
| size_t CyclicVecBase< DIM, NONCYCLIC, T >::operator() | ( | const CyclicVecBase< DIM, NONCYCLIC, T > & | key | ) | const [inline] |
Definition at line 301 of file cyclic_vec.h.
| CyclicVecBase<DIM, NONCYCLIC, T2> CyclicVecBase< DIM, NONCYCLIC, T >::operator* | ( | const CyclicVecBase< DIM, NONCYCLIC, T2 > & | v | ) | const [inline] |
Definition at line 187 of file cyclic_vec.h.
| CyclicVecBase<DIM, NONCYCLIC, T2> CyclicVecBase< DIM, NONCYCLIC, T >::operator+ | ( | const CyclicVecBase< DIM, NONCYCLIC, T2 > & | v | ) | const [inline] |
Definition at line 167 of file cyclic_vec.h.
| CyclicVecBase<DIM, NONCYCLIC, T2> CyclicVecBase< DIM, NONCYCLIC, T >::operator- | ( | const CyclicVecBase< DIM, NONCYCLIC, T2 > & | v | ) | const [inline] |
Definition at line 177 of file cyclic_vec.h.
| bool CyclicVecBase< DIM, NONCYCLIC, T >::operator== | ( | const CyclicVecBase< DIM, NONCYCLIC, T2 > & | v | ) | const [inline] |
Definition at line 154 of file cyclic_vec.h.
| T& CyclicVecBase< DIM, NONCYCLIC, T >::operator[] | ( | const int & | x | ) | [inline] |
Definition at line 222 of file cyclic_vec.h.
| const T& CyclicVecBase< DIM, NONCYCLIC, T >::operator[] | ( | const int & | x | ) | const [inline] |
Definition at line 226 of file cyclic_vec.h.
| void CyclicVecBase< DIM, NONCYCLIC, T >::rotate | ( | const float | ang | ) | [inline] |
Definition at line 258 of file cyclic_vec.h.
| void CyclicVecBase< DIM, NONCYCLIC, T >::setElements | ( | const int | i, |
| const T2 & | first, | ||
| const ArgList &... | rest | ||
| ) | [inline, protected] |
Definition at line 84 of file cyclic_vec.h.
| void CyclicVecBase< DIM, NONCYCLIC, T >::setElements | ( | const int | i | ) | [inline, protected] |
Definition at line 91 of file cyclic_vec.h.
| T CyclicVecBase< DIM, NONCYCLIC, T >::sqlen | ( | ) | const [inline] |
Definition at line 230 of file cyclic_vec.h.
| CyclicVecBase< DIM, NONCYCLIC, T >::static_assert | ( | std::is_same< float, T > | )||std::is_same< int, T >(, |
| "T must be float or int" | |||
| ) | [protected] |
T CyclicVecBase< DIM, NONCYCLIC, T >::e_[DIM] [protected] |
Definition at line 81 of file cyclic_vec.h.