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

template<typename Scalar>
template<typename Derived>
Quaternion< Scalar > & Quaternion< Scalar >::operator= ( const MatrixBase< Derived > &  xpr  )  [inline]

Set *this from the expression xpr:

  • if xpr is a 4x1 vector, then xpr is assumed to be a quaternion
  • if xpr is a 3x3 matrix, then xpr is assumed to be rotation matrix and xpr is converted to a quaternion

Definition at line 322 of file Quaternion.h.

References MatrixBase< Derived >::derived().

  ei_quaternion_assign_impl<Derived>::run(*this, xpr.derived());
  return *this;

Generated by  Doxygen 1.6.0   Back to index