diff --git a/src/Math/Quaternion.h b/src/Math/Quaternion.h index 43c3b959c..794677ed3 100644 --- a/src/Math/Quaternion.h +++ b/src/Math/Quaternion.h @@ -50,7 +50,7 @@ template class Quaternion { * @brief Angle between normalized quaternions (in radians) * * Expects that both quaternions are normalized. @f[ - * \theta = acos \left(\frac{p \cdot q}{|p| \cdot |q|} \right) + * \theta = acos \left( \frac{p \cdot q}{|p| \cdot |q|} \right) * @f] */ inline static T angle(const Quaternion& normalizedA, const Quaternion& normalizedB) { @@ -71,7 +71,8 @@ template class Quaternion { */ inline static Quaternion lerp(const Quaternion& normalizedA, const Quaternion& normalizedB, T t) { CORRADE_ASSERT(MathTypeTraits::equals(normalizedA.dot(), T(1)) && MathTypeTraits::equals(normalizedB.dot(), T(1)), - "Math::Quaternion::lerp(): quaternions must be normalized", Quaternion({}, std::numeric_limits::quiet_NaN())); + "Math::Quaternion::lerp(): quaternions must be normalized", + Quaternion({}, std::numeric_limits::quiet_NaN())); return ((T(1) - t)*normalizedA + t*normalizedB).normalized(); } diff --git a/src/Math/Vector.h b/src/Math/Vector.h index 421dcdf41..34fe81911 100644 --- a/src/Math/Vector.h +++ b/src/Math/Vector.h @@ -41,7 +41,7 @@ template class Vector: public RectangularMatrix<1, si * @brief Dot product * * @f[ - * a \cdot b = \sum_{i=0}^{n-1} a_ib_i + * a \cdot b = \sum_{i=0}^{n-1} a_ib_i * @f] * @see dot() const */ @@ -58,7 +58,7 @@ template class Vector: public RectangularMatrix<1, si * @brief Angle between normalized vectors (in radians) * * Expects that both vectors are normalized. @f[ - * \theta = acos \left(\frac{a \cdot b}{|a| \cdot |b|} \right) + * \theta = acos \left( \frac{a \cdot b}{|a| \cdot |b|} \right) * @f] */ inline static T angle(const Vector& normalizedA, const Vector& normalizedB) {