position.h 507 B

12345678910111213141516171819202122232425
  1. #ifndef sync_time_position_h
  2. #define sync_time_position_h
  3. namespace host_server{
  4. /*
  5. * 保存定位结果的点坐标
  6. */
  7. class position
  8. {
  9. public:
  10. double x;
  11. double y;
  12. double z;
  13. position():x(0), y(0), z(0){}
  14. position(double x, double y, double z):x(x), y(y), z(z){}
  15. void operator = (const position &p)
  16. {
  17. this->x = p.x;
  18. this->y = p.y;
  19. this->z = p.z;
  20. }
  21. };
  22. }
  23. #endif