Files
jsix_import/src/modules/kutil/coord.h
2018-04-17 23:41:28 -07:00

15 lines
200 B
C++

#pragma once
namespace kutil {
template <typename T>
struct coord
{
T x, y;
coord() : x(T{}), y(T{}) {}
coord(T x, T y) : x(x), y(y) {}
T size() const { return x * y; }
};
} // namespace kutil