diff options
author | Mattes D <github@xoft.cz> | 2014-03-14 11:52:15 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-03-14 11:52:15 +0100 |
commit | 1259844084c91173a5338309e5bb1e4d3c753746 (patch) | |
tree | 9e5fdd0ecb52e96f71fdab64ff8229f4fe0ba4f1 /src/Vector3.h | |
parent | cPluginManager:Bind[Console]Command returns true on success. (diff) | |
parent | Vector3: More casts (diff) | |
download | cuberite-1259844084c91173a5338309e5bb1e4d3c753746.tar cuberite-1259844084c91173a5338309e5bb1e4d3c753746.tar.gz cuberite-1259844084c91173a5338309e5bb1e4d3c753746.tar.bz2 cuberite-1259844084c91173a5338309e5bb1e4d3c753746.tar.lz cuberite-1259844084c91173a5338309e5bb1e4d3c753746.tar.xz cuberite-1259844084c91173a5338309e5bb1e4d3c753746.tar.zst cuberite-1259844084c91173a5338309e5bb1e4d3c753746.zip |
Diffstat (limited to 'src/Vector3.h')
-rw-r--r-- | src/Vector3.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Vector3.h b/src/Vector3.h index b7a810fc5..ba4abe3eb 100644 --- a/src/Vector3.h +++ b/src/Vector3.h @@ -52,9 +52,9 @@ public: { double Len = 1.0 / Length(); - x *= Len; - y *= Len; - z *= Len; + x = (T)(x * Len); + y = (T)(y * Len); + z = (T)(z * Len); } inline Vector3<T> NormalizeCopy(void) const @@ -62,9 +62,9 @@ public: double Len = 1.0 / Length(); return Vector3<T>( - x * Len, - y * Len, - z * Len + (T)(x * Len), + (T)(y * Len), + (T)(z * Len) ); } @@ -73,9 +73,9 @@ public: double Len = 1.0 / Length(); a_Rhs.Set( - x * Len, - y * Len, - z * Len + (T)(x * Len), + (T)(y * Len), + (T)(z * Len) ); } |