quakeforge/ruamoko/gui/Point.r

20 lines
264 B
R
Raw Normal View History

#include "gui/Point.h"
Point makePoint (int x, int y)
{
Point p = {x, y};
return p;
}
Point addPoint (Point a, Point b)
{
Point c = {a.x + b.x, a.y + b.y};
return c;
}
Point subtractPoint (Point a, Point b)
{
Point c = {a.x - b.x, a.y - b.y};
return c;
}