mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-06 15:51:25 +00:00
33 lines
320 B
R
33 lines
320 B
R
#include "point.h"
|
|
|
|
@implementation Point
|
|
|
|
-initAtX:(integer)_x Y:(integer)_y
|
|
{
|
|
[super init];
|
|
x = _x;
|
|
y = _y;
|
|
return self;
|
|
}
|
|
|
|
-initWithPoint:(Point)p
|
|
{
|
|
[super init];
|
|
x = p.x;
|
|
y = p.y;
|
|
return self;
|
|
}
|
|
|
|
-setTo:(Point)p
|
|
{
|
|
x = p.x;
|
|
y = p.y;
|
|
return self;
|
|
}
|
|
|
|
-moveBy:(Point)p
|
|
{
|
|
x += p.x;
|
|
y += p.y;
|
|
return self;
|
|
}
|