Projektarbeit Line Following Robot bei Prof. Chowanetz im WS22/23
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

utils.cpp 608B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #include "utils.h"
  2. LFRPoint::LFRPoint(/* args */) : x(0.0), y(0.0)
  3. {
  4. }
  5. LFRPoint::LFRPoint(double x, double y): x(x), y(y)
  6. {
  7. }
  8. LFRPoint::~LFRPoint()
  9. {
  10. }
  11. LFRVector::LFRVector(/* args */) : LFRPoint()
  12. {
  13. }
  14. LFRVector::LFRVector(double x, double y) : LFRPoint(x, y)
  15. {
  16. }
  17. LFRVector::LFRVector(const LFRPoint& pt) : LFRPoint(pt)
  18. {
  19. }
  20. LFRVector::~LFRVector()
  21. {
  22. }
  23. LFRLine::LFRLine(/* args */) : start(), dir()
  24. {
  25. }
  26. LFRLine::LFRLine(LFRPoint start, LFRVector dir) : start(start), dir(dir)
  27. {
  28. }
  29. LFRLine::LFRLine(LFRPoint start, LFRPoint end) : start(start)
  30. {
  31. dir = end - start;
  32. }
  33. LFRLine::~LFRLine()
  34. {
  35. }