blob: e7a70724107b9dc112b53e7e5e0a18db922afa42 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}
|