|
@@ -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;
|
|
}
|
|
}
|
|
// ------------------------------------------------------------------------------------------------
|
|
// ------------------------------------------------------------------------------------------------
|