暫無描述

doublepoint.h 624B

12345678910111213141516171819202122232425262728
  1. #ifndef DOUBLEPOINT_H
  2. #define DOUBLEPOINT_H
  3. /// A class to display to store an x, y coordinate of type double.
  4. ///
  5. class DoublePoint {
  6. public:
  7. double x, y;
  8. /// \fn DoublePoint()
  9. /// \~English
  10. /// \brief default constructor
  11. /// \~Spanish
  12. /// \brief constructor por defecto
  13. ///
  14. DoublePoint() {x = 0; y = 0;}
  15. /// \fn DoublePoint(double xp, double yp)
  16. /// \~English
  17. /// \brief constructor that sets the coordinates
  18. /// \~Spanish
  19. /// \brief constructor que setea las coordenadas
  20. ///
  21. DoublePoint(double xp, double yp) { x = xp; y = yp; }
  22. };
  23. #endif // DOUBLEPOINT_H