Attributes: Add quaternion rotation type #108678

Merged
Hans Goudey merged 10 commits from HooglyBoogly/blender:attributes-quaternion-type into main 2023-06-12 15:49:57 +02:00
1 changed files with 0 additions and 10 deletions
Showing only changes of commit 7ae3074bd9 - Show all commits

View File

@ -669,16 +669,6 @@ template<typename T> Euler3Base<T> to_euler(const QuaternionBase<T> &quat, Euler
/** \name Conversion from/to Expmap
* \{ */
template<typename T> T mod_inline(const T a, const T b)
{
return a - (b * math::floor(a / b));
}
template<typename T> T angle_wrap_rad(const T angle)
{
return mod_inline(angle + float(M_PI), float(M_PI) * 2.0f) - float(M_PI);
}
/* Prototype needed to avoid interdependencies of headers. */
HooglyBoogly marked this conversation as resolved Outdated

Missing inline keyword. Same below. Also a comment would be useful. Not really obvious to me what mod_inline means.

Missing `inline` keyword. Same below. Also a comment would be useful. Not really obvious to me what `mod_inline` means.
template<typename T, typename AngleT>
QuaternionBase<T> to_quaternion(const AxisAngleBase<T, AngleT> &axis_angle);