?
?
- (BOOL) pointInside:(CGPoint)point withEvent:(UIEvent *)event {CGPoint pt;float HALFSIDE = SIDELENGTH / 2.0f;// normalize with centered originpt.x = (point.x - HALFSIDE) / HALFSIDE;pt.y = (point.y - HALFSIDE) / HALFSIDE;// x^2 + y^2 = radiusfloat xsquared = pt.x * pt.x;float ysquared = pt.y * pt.y;// If the radius < 1, the point is within the clipped circleif ((xsquared + ysquared) < 1.0) return YES;return NO;}