2020-03-03 06:24:41 +00:00
|
|
|
#include <gui/Point.h>
|
2002-08-17 05:27:34 +00:00
|
|
|
|
2011-03-25 07:46:32 +00:00
|
|
|
Point makePoint (int x, int y)
|
2002-08-17 05:27:34 +00:00
|
|
|
{
|
2010-11-17 06:50:07 +00:00
|
|
|
Point p = {x, y};
|
|
|
|
return p;
|
2002-08-17 05:27:34 +00:00
|
|
|
}
|
|
|
|
|
2010-11-17 06:50:07 +00:00
|
|
|
Point addPoint (Point a, Point b)
|
2002-08-17 05:27:34 +00:00
|
|
|
{
|
2010-11-17 06:50:07 +00:00
|
|
|
Point c = {a.x + b.x, a.y + b.y};
|
|
|
|
return c;
|
2002-08-17 05:27:34 +00:00
|
|
|
}
|
|
|
|
|
2010-11-17 06:50:07 +00:00
|
|
|
Point subtractPoint (Point a, Point b)
|
2002-08-17 05:27:34 +00:00
|
|
|
{
|
2010-11-17 06:50:07 +00:00
|
|
|
Point c = {a.x - b.x, a.y - b.y};
|
|
|
|
return c;
|
2002-08-17 05:27:34 +00:00
|
|
|
}
|