g13gui/g13d/coord.h
June Tate-Gans ae6cf5084a g13d: Rework and cleanup namespaces and files
This is the first half of some major rework of the g13d codebase to make things
a bit more manageable. This splits out a great deal of stuff from helper.h into
separate translation units, and also breaks out a great deal of the g13.h header
into separate translation units as well.

Doing this saves in compilation time as we make changes to the system, and also
helps to clean up a whole bunch of leaking symbols.
2021-04-25 16:35:44 -05:00

29 lines
371 B
C++

#ifndef COORD_H
#define COORD_H
namespace G13 {
template <class T> class Coord {
public:
Coord()
: x(), y() {
}
Coord(T _x, T _y)
: x(_x), y(_y) {
}
T x;
T y;
};
template <class T>
std::ostream &operator<<(std::ostream &o, const Coord<T> &c) {
o << "{ " << c.x << " x " << c.y << " }";
return o;
};
} // namespace G13
#endif // COORD_H