mirror of https://github.com/libAthena/athena.git
20 lines
302 B
C++
20 lines
302 B
C++
#pragma once
|
|
|
|
#include "athena/Global.hpp"
|
|
|
|
namespace athena::Sakura {
|
|
template <typename T>
|
|
class Vector2D {
|
|
public:
|
|
T x;
|
|
T y;
|
|
|
|
Vector2D() : x(0), y(0) {}
|
|
|
|
Vector2D(T x, T y) : x(x), y(y) {}
|
|
};
|
|
|
|
typedef Vector2D<int> Vector2Di;
|
|
typedef Vector2D<float> Vector2Df;
|
|
} // namespace athena::Sakura
|