a speedup
parent
b6f14eb917
commit
6e2b0b4fd1
|
@ -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;
|
||||||
}
|
}
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue