def pointOnCircle(cx, cy, radius, angle):
angle = math.radians(angle) - (math.pi / <NUM_LIT:2>)<EOL>x = cx + radius * math.cos(angle)<EOL>if x < cx:<EOL><INDENT>x = math.ceil(x)<EOL><DEDENT>else:<EOL><INDENT>x = math.floor(x)<EOL><DEDENT>y = cy + radius * math.sin(angle)<EOL>if y < cy:<EOL><INDENT>y = math.ceil(y)<EOL><DEDENT>else:<EOL><INDENT>y = math.floor(y)<EOL><DEDENT>return (int(x), int(y))<EOL>
Calculates the coordinates of a point on a circle given the center point,
radius, and angle.