Hello, to get the component values of a vector you can use the X(), Y() and Z() method:
your_vector.X() = 0.;
your_vector.X() = 0.;
your_vector.Z() = 1.;
For a quaternion, you can use the X(), Y(), Z() and R() methods:
quaternion.X() = 0.;
quaternion.Y() = 0.;
quaternion.Z() = 0.;
quaternion.R() = 1.;
The R() method is related to the real part of the quaternion while the X(), Y(), Z() to the imaginary part.
You can take a look on the Lib/GranOO/libGeom/Quaternion.hpp and Lib/GranOO/libGeom/Vector.hpp source files.
Cheers, Damien.