cLine.h 485 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef __LINE_H__
  2. #define __LINE_H__
  3. #include "point.h"
  4. class cLine {
  5. public:
  6. cLine ();
  7. cLine (cPoint point1_, cPoint point2_);
  8. cLine (double k_, double b_);
  9. bool Ok ();
  10. void show ();
  11. bool parallel_me (cLine line1_);
  12. double get_K () {return m_K;}
  13. private:
  14. void find_coff ();
  15. void find_point ();
  16. cPoint m_point1;
  17. cPoint m_point2;
  18. double m_K;
  19. double m_B;
  20. };
  21. #endif