aboutsummaryrefslogtreecommitdiffstats
path: root/src/vector2d.cpp
blob: 88e637c63f0ccb86e6dc2bf74514428f2828c9ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "Math/vector2d.hpp"

namespace yage
{

Vector2D::Vector2D(long double x, long double y) :
	Vector({ x, y })
{}

long double Vector2D::getX() const
{
	return (*this)[0];
}

long double Vector2D::getY() const
{
	return (*this)[1];
}

} // yage