2 #define GEAR_Vectors_H 1
19 template <
int N,
typename Float_T=
double>
24 VectorND_T() {
for(
int i = 0; i < N; ++i) _c[i] = 0.; } ;
29 if( i > N-1 )
throw std::out_of_range(
"VectorND_T::operator[]" ) ;
35 if( i > N-1 )
throw std::out_of_range(
"VectorND_T::operator[]" ) ;
48 template <
typename Float_T=
double>
62 template <
typename Float_T=
double>
70 Vector3D_T( Float_T c0, Float_T c1, Float_T c2 ) {
Float_T & operator[](unsigned i)
The i-th coordinate.
Trivial N-dimensional vector.