Position.h 417 B

12345678910111213141516171819202122
  1. #pragma once
  2. namespace HostServer{
  3. /*
  4. * ±£´æ¶¨Î»½á¹ûµÄµã×ø±ê
  5. */
  6. class Position
  7. {
  8. public:
  9. double x;
  10. double y;
  11. double z;
  12. Position():x(0), y(0), z(0){}
  13. Position(double x, double y, double z):x(x), y(y), z(z){}
  14. void operator = (const Position &p)
  15. {
  16. this->x = p.x;
  17. this->y = p.y;
  18. this->z = p.z;
  19. }
  20. };
  21. }