quakeforge/ruamoko/lib/point.r
2002-08-15 21:00:51 +00:00

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;
}