#import #import "point.h" @implementation Point -(id) initWithX:(double)initX andY:(double)initY { [super init]; x = initX; y = initY; return self; } -(id) initWithAngle:(double)theta andRadius:(double)r { [super init]; x = r * cos(theta); y = r * sin(theta); return self; } -(double) getX { return x; } -(double) getY { return y; } @end