mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
cdc1f0c5e7
Now that qfcc actually supports them properly.
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;
|
|
}
|