MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / VectorInt64

Class VectorInt64

source/utils/VectorInt64.h:29–56  ·  view source on GitHub ↗

\brief A custom vector used commonly between the CameraManager and the CullingManager classes

Source from the content-addressed store, hash-verified

27
28//! \brief A custom vector used commonly between the CameraManager and the CullingManager classes
29class VectorInt64
30{
31public:
32 static const int PRECISION_DIGITS = 20;
33 static const int UNIT = (1 << PRECISION_DIGITS);
34
35 VectorInt64():
36 x(0),
37 y(0),
38 z(0)
39 {}
40
41 VectorInt64(int64_t nx, int64_t ny , int64_t nz):
42 x(nx * UNIT),
43 y(ny * UNIT),
44 z(nz * UNIT)
45 {}
46
47 VectorInt64& operator+(VectorInt64& vv);
48 VectorInt64& operator-(VectorInt64& vv);
49 VectorInt64& operator/(int ii);
50 VectorInt64(const Ogre::Vector3& OV);
51 VectorInt64& operator*(double zz);
52
53 int64_t x;
54 int64_t y;
55 int64_t z;
56};
57
58std::ostream& operator<< (std::ostream& ss,VectorInt64& vv);
59

Callers 3

cullTilesMethod · 0.85
startTileCullingMethod · 0.85
stopTileCullingMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected