Function pfield::rotateVector
Defined in File pfield_common.hpp
Function Documentation
-
inline Eigen::Vector3d pfield::rotateVector(const Eigen::Quaterniond &q, const Eigen::Vector3d &v)
Rotates the given vector v by the quaternion q.
- Parameters:
q – The quaternion representing the rotation
v – The 3D Vector to be rotated
- Returns:
Eigen::Vector3d The rotated vector