Logo Search packages:      
Sourcecode: blender version File versions  Download package

template<typename _Scalar>
Quaternion< _Scalar >::Quaternion ( Scalar  w,
Scalar  x,
Scalar  y,
Scalar  z 
) [inline]

Constructs and initializes the quaternion $ w+xi+yj+zk $ from its four coefficients w, x, y and z.

Note the order of the arguments: the real w coefficient first, while internally the coefficients are stored in the following order: [x, y, z, w]

Definition at line 122 of file Quaternion.h.

  { m_coeffs << x, y, z, w; }

Generated by  Doxygen 1.6.0   Back to index