From f58d152df3e9aa77aca346da53f61da7bba88e1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 22 Feb 2013 13:37:42 +0100 Subject: [PATCH] Math: use lengthSquared() instead of length() squared. Forgot to change this to avoid sqrt(). --- src/Math/DualQuaternion.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Math/DualQuaternion.h b/src/Math/DualQuaternion.h index 869f4dd0d..05cf448d4 100644 --- a/src/Math/DualQuaternion.h +++ b/src/Math/DualQuaternion.h @@ -226,7 +226,7 @@ template class DualQuaternion: public Dual> { * @f] */ inline DualQuaternion inverted() const { - return quaternionConjugated()/pow2(length()); + return quaternionConjugated()/lengthSquared(); } /**