a speedup

pull/713/head
Vitaly Ovchinnikov 2015-12-14 15:37:27 +13:00
parent b6f14eb917
commit 6e2b0b4fd1
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ template <typename TReal>
AI_FORCE_INLINE aiVector3t<TReal>& aiVector3t<TReal>::NormalizeSafe() { AI_FORCE_INLINE aiVector3t<TReal>& aiVector3t<TReal>::NormalizeSafe() {
TReal len = Length(); TReal len = Length();
if (len > static_cast<TReal>(0)) if (len > static_cast<TReal>(0))
*this /= Length(); *this /= len;
return *this; return *this;
} }
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------