60 inline Tvec7(
const DT x,
const DT y,
const DT z,
const DT c,
61 const DT t,
const DT u,
const DT v)
63 assign(x,y,z,c,t,u,v);
72 inline void assign(
const DT x,
const DT y,
const DT z,
const DT c,
73 const DT t,
const DT u,
const DT v)
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;
Template class for vector arithmetic with floating point data types.
An seven dimensional vector class for floating point types.
Tvec7(const DT value=0)
Default and value constructor.
FloatingPointVector< DT, 7 > Superclass
A typedef as a shorthand for the base class.
DT ComponentType
A typedef to "export" the type of components.
Tvec7(const DT x, const DT y, const DT z, const DT c, const DT t, const DT u, const DT v)
Builds the vector from the scalars x, y, z, c, t, u and v to the components 0 to 6,...
void assign(const DT x, const DT y, const DT z, const DT c, const DT t, const DT u, const DT v)
Sets all components to the passed values.
Tvec7(const Superclass &v)
Copy constructor from FloatingPointVector.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.