AllenDowney / ThinkPython2

LaTeX source and supporting code for Think Python, 2nd edition, by Allen Downey.
Other
2.49k stars 1.65k forks source link

Rectangle corner in rect_in_circle function #66

Open Piolie opened 4 years ago

Piolie commented 4 years ago

In chapter 15, it says the corner attribute of the Rectangle class "specifies the lower-left corner". However, it seems to me that function rect_in_circle treats it as the upper-left corner. Shouldn't line 54 in Circle.py be: p.y += rect.height instead?