quakeforge/ruamoko/gui/Point.r
Bill Currie b0879ba255 Convert Point, Size and Rect to structs.
Group and the menu plist parser are currently broken.
2010-11-24 17:01:17 +09:00

19 lines
272 B
R

#include "gui/Point.h"
Point makePoint (integer x, integer 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;
}