Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 08 / Nvector / TwoDimCoordSystem.cpp
diff options
context:
space:
mode:
Commitce24f073c5e946b5bad600fca1ca8808657ee9ce (patch)
Author
 angeld55 <angel_dimitriev@abv.bg>
2021-04-16 15:50:04 +0300
Committer
 angeld55 <angel_dimitriev@abv.bg>
2021-04-16 15:50:04 +0300
Files948e5f8ef602b7eff3822b289ce5c0ab16ba4bf2 /Sem. 08/Nvector/TwoDimCoordSystem.cpp
Object-oriented_programming_FMI-ce24f073c5e946b5bad600fca1ca8808657ee9ce.tar
Object-oriented_programming_FMI-ce24f073c5e946b5bad600fca1ca8808657ee9ce.tar.gz
Object-oriented_programming_FMI-ce24f073c5e946b5bad600fca1ca8808657ee9ce.zip
Parentb233a370168ea6239f8233a299460f8f55cbf3c7 (diff)
added sem 8
1 files changed, 18 insertions, 0 deletions
-rw-r--r--Sem. 08/Nvector/TwoDimCoordSystem.cpp18
diff --git a/Sem. 08/Nvector/TwoDimCoordSystem.cpp b/Sem. 08/Nvector/TwoDimCoordSystem.cpp
new file mode 100644
index 0000000..e7a7072
--- /dev/null
+++ b/Sem. 08/Nvector/TwoDimCoordSystem.cpp
@@ -0,0 +1,18 @@
+#include "TwoDimCoordSystem.h"
+
+TwoDimCoordSystem::TwoDimCoordSystem(const Nvector& v1, const Nvector& v2) : v1(v1), v2(v2)
+{
+ if (~v1 != 2 || ~v2 != 2)
+ throw "Size of vectors should be 2!";
+ if (v1 || v2)
+ throw "Vectors should not be parallel!";
+}
+
+Nvector TwoDimCoordSystem::getVectorByCoordinates(size_t coordX, size_t coordY) const
+{
+ //todo
+}
+Nvector TwoDimCoordSystem::getCoordinatesByVector(const Nvector& other) const
+{
+ //todo
+} \ No newline at end of file