1
0

point.cpp 200 B

123456789101112131415161718192021
  1. #include "point.h"
  2. point::point()
  3. :x(0) ,y(0),z(0)
  4. {
  5. }
  6. void point::set(double x_,double y_,double z_)
  7. {
  8. x=x_;
  9. y=y_;
  10. z=z_;
  11. }
  12. void point::swap(point&p)
  13. {
  14. point tmp=*this;
  15. *this=p;
  16. p=tmp;
  17. }