Source

cpp-sandbox / src / point.h

Full commit
#ifndef _SVG_POINT_H
#define _SVG_POINT_H

namespace svg {

	class Point {
		int _x;
		int _y;

	public:
		inline Point() : _x(0), _y(0) {}
		inline Point(int x, int y) : _x(x), _y(y) {}
		inline Point(const Point &point) : _x(point._x), _y(point._y) {}

		inline int get_x() const
		{
			return _x;
		}

		inline int get_y() const
		{
			return _y;
		}
	};

}

#endif