61 const DT t,
const DT u,
const DT v,
const DT w)
63 assign(x,y,z,c,t,u,v,w);
73 const DT t,
const DT u,
const DT v,
const DT w)
75 Superclass::_buffer[0] = x;
76 Superclass::_buffer[1] = y;
77 Superclass::_buffer[2] = z;
78 Superclass::_buffer[3] = c;
79 Superclass::_buffer[4] = t;
80 Superclass::_buffer[5] = u;
81 Superclass::_buffer[6] = v;
82 Superclass::_buffer[7] = w;
Template class for vector arithmetic with floating point datatypes.
An eight dimensional vector class for floating point types.
FloatingPointVector< DT, 8 > Superclass
A typedef as a shorthand for the base class.
Tvec8(const Superclass &v)
Copy constructor from FloatingPointVector.
DT ComponentType
A typedef to 'export' the type of components.
Tvec8(const DT value=0)
Default and value constructor.
void assign(const DT x, const DT y, const DT z, const DT c, const DT t, const DT u, const DT v, const DT w)
Sets all components to the passed values.
Tvec8(const DT x, const DT y, const DT z, const DT c, const DT t, const DT u, const DT v, const DT w)
Builds the vector from the scalars x, y, z, c, t, u, v, and w to the components 0 to 7,...
Tvec8< MLldouble > Vector8ld
A vector with eight components of type long double.
Tvec8< MLdouble > Vector8d
A vector with eight components of type double.
Tvec8< MLfloat > Vector8f
A vector with eight components of type float.
Tvec8< MLdouble > Vector8
A vector with eight components of type double.