1
0

Vector3: More casts

This commit is contained in:
andrew 2014-03-12 16:30:57 +02:00
parent 6f2bb0ad44
commit 4a883be428

View File

@ -52,9 +52,9 @@ public:
{ {
double Len = 1.0 / Length(); double Len = 1.0 / Length();
x *= Len; x = (T)(x * Len);
y *= Len; y = (T)(y * Len);
z *= Len; z = (T)(z * Len);
} }
inline Vector3<T> NormalizeCopy(void) const inline Vector3<T> NormalizeCopy(void) const
@ -62,9 +62,9 @@ public:
double Len = 1.0 / Length(); double Len = 1.0 / Length();
return Vector3<T>( return Vector3<T>(
x * Len, (T)(x * Len),
y * Len, (T)(y * Len),
z * Len (T)(z * Len)
); );
} }
@ -73,9 +73,9 @@ public:
double Len = 1.0 / Length(); double Len = 1.0 / Length();
a_Rhs.Set( a_Rhs.Set(
x * Len, (T)(x * Len),
y * Len, (T)(y * Len),
z * Len (T)(z * Len)
); );
} }