pygame-geometry icon indicating copy to clipboard operation
pygame-geometry copied to clipboard

Circle `top` / `bottom` / `left` / `right` attribs

Open itzpr3d4t0r opened this issue 2 years ago • 2 comments

Would allow to get these points: image While avoiding having to write:

c.y - c.r  # top
c.x + c.r  # right
c.y + c.r  # bottom
c.x - c.r  # left

itzpr3d4t0r avatar Jul 23 '23 19:07 itzpr3d4t0r

Perhaps Circle.get_point_at(rad) so doing get_point_at(0) could return top, then etc

andrewhong04 avatar Aug 03 '23 07:08 andrewhong04

Possibly both? so you'd have a concise way of getting those simple points and a more elaborate one for all the others?

itzpr3d4t0r avatar Aug 03 '23 08:08 itzpr3d4t0r