Function reference()
Let us say you have an old variable and you want to re-initialize it to view some other data. For this task, you can use the member function reference():
 
#include <rw/math/mathvec.h>
int main()
{
RWMathVec<double> a, b, c;
.
.
.
a.reference(b + c);
}
This produces exactly the same results as:
 
#include <rw/math/mathvec.h>
int main()
{
RWMathVec<double> b, c;
.
.
.
RWMathVec<double> a = b + c;
}