\brief A custom vector used commonly between the CameraManager and the CullingManager classes
| 27 | |
| 28 | //! \brief A custom vector used commonly between the CameraManager and the CullingManager classes |
| 29 | class VectorInt64 |
| 30 | { |
| 31 | public: |
| 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 | |
| 58 | std::ostream& operator<< (std::ostream& ss,VectorInt64& vv); |
| 59 |
no outgoing calls
no test coverage detected