Website Summary Files Commits Branches @commit @diff @stats
path: root / Classes / Triangle / point.hpp
diff options
context:
space:
mode:
Commit112a0d344da9e66d20ee9ab5d488e59c5d52e6ad (patch)
Author
 Angeld55 <angel_dimitriev@abv.bg>
2020-04-09 18:09:42 +0300
Committer
 Angeld55 <angel_dimitriev@abv.bg>
2020-04-09 18:09:42 +0300
Filese3bb9cf17c24a3b53c746d9142906d550d549465 /Classes/Triangle/point.hpp
Object-oriented_programming_FMI-112a0d344da9e66d20ee9ab5d488e59c5d52e6ad.tar
Object-oriented_programming_FMI-112a0d344da9e66d20ee9ab5d488e59c5d52e6ad.tar.gz
Object-oriented_programming_FMI-112a0d344da9e66d20ee9ab5d488e59c5d52e6ad.zip
Parentec26fab32d144b436d08f9da6049bd053156d783 (diff)
added new examples
1 files changed, 0 insertions, 23 deletions
-rw-r--r--Classes/Triangle/point.hpp23
diff --git a/Classes/Triangle/point.hpp b/Classes/Triangle/point.hpp
deleted file mode 100644
index a8a2c19..0000000
--- a/Classes/Triangle/point.hpp
+++ /dev/null
@@ -1,23 +0,0 @@
-#include <iostream>
-
-struct Point
-{
- Point()
- {
- x = 0;
- y = 0;
- }
- Point(int x, int y)
- {
- this->x = x;
- this->y = y;
- }
- double DistTo(const Point& other)
- {
- int dx = x - other.x;
- int dy = y - other.y;
- return sqrt(dx*dx + dy*dy);
- }
- int x;
- int y;
-}; \ No newline at end of file