diff options
| author | Xanadu <none@none> | 2010-07-20 02:49:28 +0200 | 
|---|---|---|
| committer | Xanadu <none@none> | 2010-07-20 02:49:28 +0200 | 
| commit | 79622802f397258ee0f34327ba3ae6977ca3e7ff (patch) | |
| tree | 1868946c234ab9ee256a6b7766a15713eae94235 /dep/src/g3dlite/Vector3int32.cpp | |
| parent | 7dd2dc91816ab8b3bc3b99a1b1c99c7ea314d5a8 (diff) | |
| parent | f906976837502fa5aa81b982b901d1509f5aa0c4 (diff) | |
Merge. Revision history for source files should be all back now.
--HG--
branch : trunk
rename : sql/CMakeLists.txt => sql/tools/CMakeLists.txt
rename : src/server/game/Pools/PoolHandler.cpp => src/server/game/Pools/PoolMgr.cpp
rename : src/server/game/Pools/PoolHandler.h => src/server/game/Pools/PoolMgr.h
rename : src/server/game/PrecompiledHeaders/NixCorePCH.cpp => src/server/game/PrecompiledHeaders/gamePCH.cpp
rename : src/server/game/PrecompiledHeaders/NixCorePCH.h => src/server/game/PrecompiledHeaders/gamePCH.h
Diffstat (limited to 'dep/src/g3dlite/Vector3int32.cpp')
| -rw-r--r-- | dep/src/g3dlite/Vector3int32.cpp | 57 | 
1 files changed, 0 insertions, 57 deletions
diff --git a/dep/src/g3dlite/Vector3int32.cpp b/dep/src/g3dlite/Vector3int32.cpp deleted file mode 100644 index 3bd8e9f2bc2..00000000000 --- a/dep/src/g3dlite/Vector3int32.cpp +++ /dev/null @@ -1,57 +0,0 @@ -/** - @file Vector3int32.cpp -  - @author Morgan McGuire, http://graphics.cs.williams.edu -   - @created 2008-07-01 - @edited  2008-07-01 - */ - -#include "G3D/platform.h" -#include "G3D/g3dmath.h" -#include "G3D/Vector3int32.h" -#include "G3D/Vector3int16.h" -#include "G3D/Vector3.h" -#include "G3D/BinaryInput.h" -#include "G3D/BinaryOutput.h" -#include "G3D/format.h" - -namespace G3D { - -Vector3int32::Vector3int32(const class Vector3& v) { -    x = (int32)iFloor(v.x + 0.5); -    y = (int32)iFloor(v.y + 0.5); -    z = (int32)iFloor(v.z + 0.5); -} - - -Vector3int32::Vector3int32(const class Vector3int16& v) { -    x = v.x; -    y = v.y; -    z = v.z; -} - - -Vector3int32::Vector3int32(class BinaryInput& bi) { -    deserialize(bi); -} - - -void Vector3int32::serialize(class BinaryOutput& bo) const { -    bo.writeInt32(x); -    bo.writeInt32(y); -    bo.writeInt32(z); -} - - -void Vector3int32::deserialize(class BinaryInput& bi) { -    x = bi.readInt32(); -    y = bi.readInt32(); -    z = bi.readInt32(); -} - -std::string Vector3int32::toString() const { -    return G3D::format("(%d, %d, %d)", x, y, z); -} - -}  | 
