-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPoint3D.h
More file actions
33 lines (28 loc) · 779 Bytes
/
Point3D.h
File metadata and controls
33 lines (28 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef Point3D_h
#define Point3D_h
// my includes
#include "mytypes.h"
#include "Cube.h"
class Point3D
{
public:
Point3D() : m_x(0), m_y(0), m_z(0) {}
Point3D(const y_int32_t y, const x_int32_t x, const z_int32_t z) : m_x(x), m_y(y), m_z(z) {}
x_int32_t m_x;
y_int32_t m_y;
z_int32_t m_z;
bool inside(const Cube& cube) const;
friend class boost::serialization::access;
private:
// When the class Archive corresponds to an output archive, the
// & operator is defined similar to <<. Likewise, when the class Archive
// is a type of input archive the & operator is defined similar to >>.
template<class Archive>
void serialize(Archive& ar, const unsigned int version)
{
ar & m_x;
ar & m_y;
ar & m_z;
Q_UNUSED(version);
}};
#endif