Try mplementing operator+= (broken but almost there).
This commit is contained in:
parent
9ea9743e95
commit
dbdc814049
4 changed files with 136 additions and 6 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "doorkeeper/implem/vector.hpp"
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
#include <algorithm>
|
||||
|
||||
namespace dk {
|
||||
template <uint32_t D>
|
||||
|
@ -28,11 +29,18 @@ namespace dk {
|
|||
bool operator== ( const TileCoords& parOther ) const;
|
||||
bool operator!= ( const TileCoords& parOther ) const;
|
||||
TileCoords& operator= ( const TileCoords& ) = default;
|
||||
const CoordinateScalarType& operator[] ( int parIndex ) const;
|
||||
CoordinateScalarType& operator[] ( int parIndex );
|
||||
|
||||
private:
|
||||
coords m_pos;
|
||||
coords m_size;
|
||||
};
|
||||
|
||||
namespace implem {
|
||||
CoordinateScalarType sum_mod ( CoordinateScalarType parA, CoordinateScalarType parB, CoordinateScalarType parDiv ) a_pure;
|
||||
CoordinateScalarType sum_div ( CoordinateScalarType parA, CoordinateScalarType parB, CoordinateScalarType parDiv ) a_pure;
|
||||
} //namespace implem
|
||||
} //namespace dk
|
||||
|
||||
#include "doorkeeper/implem/tilecoords.inl"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue