Recast  1
Game with custom magic
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
IntScaleParallelepiped.hpp
Go to the documentation of this file.
1 //
2 // Created by Oleg Morozenkov on 14.06.17.
3 //
4 
5 #ifndef RECAST_SCALEDPARALLELEPIPED_H
6 #define RECAST_SCALEDPARALLELEPIPED_H
7 
8 
9 #include "Parallelepiped.hpp"
10 #include "IntScale.hpp"
11 
18  }
19 
20  IntScaleParallelepiped(int x, int y, int z, IntScale::Mode mode) : _x(IntScale(x, mode)) , _y(IntScale(y, mode)) , _z(IntScale(z, mode)) {
21  }
22 
26  inline IntScale x() const noexcept {
27  return _x;
28  };
29 
33  inline IntScale y() const noexcept {
34  return _y;
35  };
36 
40  inline IntScale z() const noexcept {
41  return _z;
42  };
43 
44  inline bool operator==(const IntScaleParallelepiped& other) const noexcept {
45  return _x == other._x && _y == other._y && _z == other._z;
46  }
47 
48  inline bool operator!=(const IntScaleParallelepiped& other) const noexcept {
49  return !(*this == other);
50  }
51 
52 protected:
56 };
57 
58 
59 #endif //RECAST_SCALEDPARALLELEPIPED_H
bool operator!=(const IntScaleParallelepiped &other) const noexcept
Definition: IntScaleParallelepiped.hpp:48
IntScale y() const noexcept
Definition: IntScaleParallelepiped.hpp:33
IntScale _z
Definition: IntScaleParallelepiped.hpp:55
Mode
Definition: IntScale.hpp:15
bool operator==(const IntScaleParallelepiped &other) const noexcept
Definition: IntScaleParallelepiped.hpp:44
IntScaleParallelepiped(int x, int y, int z, IntScale::Mode mode)
Definition: IntScaleParallelepiped.hpp:20
Definition: IntScale.hpp:13
IntScale _x
Definition: IntScaleParallelepiped.hpp:53
IntScale x() const noexcept
Definition: IntScaleParallelepiped.hpp:26
Definition: IntScaleParallelepiped.hpp:16
IntScaleParallelepiped(IntScale x, IntScale y, IntScale z)
Definition: IntScaleParallelepiped.hpp:17
IntScale z() const noexcept
Definition: IntScaleParallelepiped.hpp:40
IntScale _y
Definition: IntScaleParallelepiped.hpp:54