
#import "Point.h"

@implementation Point


- initFromX:(float)x y:(float)y
{
	[super init];
	point.x = x;
	point.y = y;	
	return self;
}

- initFrom:(NXPoint *)p
{
	[super init];
	point = *p;
	return self;
}

- (NXPoint *)asCPointer		{ return (NXPoint *)&point; }
- setX:(float)x				{ point.x = x; return self; }
- setX:(float)x y:(float)y	{ point.x = x; point.y = y; return self; }
- setY:(float)y				{ point.y = y; return self; }
- (double)xCoord				{ return (double)point.x; }
- (double)yCoord				{ return (double)point.y; }

@end