Ah, I get it now. I have to store the acircle.getCenter() in a point Point,
and then access Point.getX() and Point.getY() separately. It was just that
middle step that I was missing. Thanks so much!
--
https://mail.python.org/mailman/listinfo/python-list
> But your code has:
>
> moving_circle.move(P_to_R/P_to_E, E_to_R/P_to_E)
>
> so won't that move the circle and change what:
>
> moving_circle.getCenter()
>
> returns?
Yes, moving the circle changes the value of moving_circle.getCenter(). The
problem is interpreting the output. The
I did try that. The problem is that I already declared a point
moving_object_center = (-555,-555), because that's the point I used as the
center to draw the moving_object circle itself. So the
moving_object_center.getX() will return -555 no matter what I do.
That's why I need to calculate the
My program has two circles: one stationary circle, drawn at a random location;
and one moving circle, consistently drawn in the same place in the graphics
window.
The moving circle moves towards the stationary one. However, when the moving
circle hits the stationary one (when the x-coordinates