Point3D.h 352 B

12345678910111213141516171819
  1. #ifndef __POINT_3D__HH
  2. #define __POINT_3D__HH
  3. class CPoint3D
  4. {
  5. public:
  6. double x, y, z;
  7. CPoint3D();
  8. ~CPoint3D();
  9. CPoint3D(double c1, double c2, double c3);
  10. CPoint3D& operator=(const CPoint3D& pt);
  11. CPoint3D(const CPoint3D& pt)
  12. {
  13. *this = pt;
  14. }
  15. void Translate(double cx, double cy, double cz); //ת��
  16. };
  17. #endif