mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-17 02:11:35 +00:00
19 lines
264 B
R
19 lines
264 B
R
#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;
|
|
}
|