int xCenter = (int) (x + a); int yCenter = (int) (y + b);
int xCenter =  x + a; int yCenter =  y + b;
	public Point getPerimeterPoint(Point source, Point p) {		// Compute relative bounds		Rectangle r = getBounds();		int x = r.x;		int y = r.y;		int a = (r.width + 1) / 2;		int b = (r.height + 1) / 2;		// Get center		int xCenter = (int) (x + a);		int yCenter = (int) (y + b);		// Compute angle		int dx = p.x - xCenter;		int dy = p.y - yCenter;		double t = Math.atan2(dy, dx);		// Compute Perimeter Point		int xout = xCenter + (int) (a * Math.cos(t)) - 1;		int yout = yCenter + (int) (b * Math.sin(t)) - 1;		// Return perimeter point		return new Point(xout, yout);	}