Browse Source

Math: use lengthSquared() instead of length() squared.

Forgot to change this to avoid sqrt().
pull/7/head
Vladimír Vondruš 13 years ago
parent
commit
f58d152df3
  1. 2
      src/Math/DualQuaternion.h

2
src/Math/DualQuaternion.h

@ -226,7 +226,7 @@ template<class T> class DualQuaternion: public Dual<Quaternion<T>> {
* @f]
*/
inline DualQuaternion<T> inverted() const {
return quaternionConjugated()/pow2(length());
return quaternionConjugated()/lengthSquared();
}
/**

Loading…
Cancel
Save