True, if the point lies in the unit circle False, otherwise
(self)
| 7 | self.y = y |
| 8 | |
| 9 | def is_in_unit_circle(self) -> bool: |
| 10 | """ |
| 11 | True, if the point lies in the unit circle |
| 12 | False, otherwise |
| 13 | """ |
| 14 | return (self.x**2 + self.y**2) <= 1 |
| 15 | |
| 16 | @classmethod |
| 17 | def random_unit_square(cls): |