From 1f507d81d4d11e7495a1430056ef2fc42eca3bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 3 Sep 2018 15:34:54 +0200 Subject: [PATCH] Math: make docs of slerp() for Complex consistent with Quaternion. --- src/Magnum/Math/Complex.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Magnum/Math/Complex.h b/src/Magnum/Math/Complex.h index be0dc5d81..e701311d7 100644 --- a/src/Magnum/Math/Complex.h +++ b/src/Magnum/Math/Complex.h @@ -488,9 +488,10 @@ template inline Complex lerp(const Complex& normalizedA, const Co Expects that both complex numbers are normalized. If the complex numbers are the same, returns the first argument. @f[ - c_{SLERP} = \frac{sin((1 - t) \theta) c_A + sin(t \theta) c_B}{sin \theta} - ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ - \theta = acos \left( \frac{c_A \cdot c_B}{|c_A| \cdot |c_B|} \right) = acos(c_A \cdot c_B) + \begin{array}{rcl} + \theta & = & \arccos \left( \frac{c_A \cdot c_B}{|c_A| |c_B|} \right) = \arccos(c_A \cdot c_B) \\[6pt] + c_{SLERP} & = & \cfrac{\sin((1 - t) \theta) c_A + \sin(t \theta) c_B}{\sin(\theta)} + \end{array} @f] @see @ref Complex::isNormalized(), @ref lerp(const Complex&, const Complex&, T), @ref slerp(const Quaternion&, const Quaternion&, T)