|
147 | 147 | .. method:: collidepoint
|
148 | 148 |
|
149 | 149 | | :sl:`test if a point is inside the circle`
|
150 |
| - | :sg:`collidepoint((x, y)) -> bool` |
151 |
| - | :sg:`collidepoint(x, y) -> bool` |
152 |
| - | :sg:`collidepoint(Vector2) -> bool` |
| 150 | + | :sg:`collidepoint((x, y), /) -> bool` |
| 151 | + | :sg:`collidepoint(x, y, /) -> bool` |
| 152 | + | :sg:`collidepoint(vector2, /) -> bool` |
153 | 153 |
|
154 | 154 | The `collidepoint` method tests whether a given point is inside the `Circle`
|
155 | 155 | (including the edge of the `Circle`). It takes a tuple of (x, y) coordinates, two
|
|
161 | 161 | .. method:: collidecircle
|
162 | 162 |
|
163 | 163 | | :sl:`test if two circles collide`
|
164 |
| - | :sg:`collidecircle(Circle) -> bool` |
165 |
| - | :sg:`collidecircle(x, y, radius) -> bool` |
166 |
| - | :sg:`collidecircle((x, y), radius) -> bool` |
| 164 | + | :sg:`collidecircle(circle, /) -> bool` |
| 165 | + | :sg:`collidecircle(x, y, radius, /) -> bool` |
| 166 | + | :sg:`collidecircle((x, y), radius, /) -> bool` |
167 | 167 |
|
168 | 168 | The `collidecircle` method tests whether two `Circle` objects overlap. It takes either
|
169 | 169 | a `Circle` object, a tuple of (x, y) coordinates and a radius, or separate x and y
|
|
179 | 179 | .. method:: move
|
180 | 180 |
|
181 | 181 | | :sl:`moves the circle by a given amount`
|
182 |
| - | :sg:`move((x, y)) -> Circle` |
183 |
| - | :sg:`move(x, y) -> Circle` |
184 |
| - | :sg:`move(Vector2) -> Circle` |
| 182 | + | :sg:`move((x, y), /) -> Circle` |
| 183 | + | :sg:`move(x, y, /) -> Circle` |
| 184 | + | :sg:`move(vector2, /) -> Circle` |
185 | 185 |
|
186 | 186 | The `move` method allows you to create a new `Circle` object that is moved by a given
|
187 | 187 | offset from the original `Circle`. This is useful if you want to move a `Circle` without
|
|
201 | 201 | .. method:: move_ip
|
202 | 202 |
|
203 | 203 | | :sl:`moves the circle by a given amount, in place`
|
204 |
| - | :sg:`move_ip((x, y)) -> None` |
205 |
| - | :sg:`move_ip(x, y) -> None` |
206 |
| - | :sg:`move_ip(Vector2) -> None` |
| 204 | + | :sg:`move_ip((x, y), /) -> None` |
| 205 | + | :sg:`move_ip(x, y, /) -> None` |
| 206 | + | :sg:`move_ip(vector2, /) -> None` |
207 | 207 |
|
208 | 208 | The `move_ip` method is similar to the move method, but it moves the `Circle` in place,
|
209 | 209 | modifying the original `Circle` object. This method takes the same types of arguments
|
|
222 | 222 | .. method:: colliderect
|
223 | 223 |
|
224 | 224 | | :sl:`checks if a rectangle intersects the circle`
|
225 |
| - | :sg:`colliderect(Rect) -> bool` |
226 |
| - | :sg:`colliderect((x, y, width, height)) -> bool` |
227 |
| - | :sg:`colliderect(x, y, width, height) -> bool` |
228 |
| - | :sg:`colliderect((x, y), (width, height)) -> bool` |
| 225 | + | :sg:`colliderect(rect, /) -> bool` |
| 226 | + | :sg:`colliderect((x, y, width, height), /) -> bool` |
| 227 | + | :sg:`colliderect(x, y, width, height, /) -> bool` |
| 228 | + | :sg:`colliderect((x, y), (width, height), /) -> bool` |
229 | 229 |
|
230 | 230 | The `colliderect` method tests whether a given rectangle intersects the `Circle`. It
|
231 | 231 | takes either a `Rect` object, a tuple of (x, y, width, height) coordinates, or separate
|
|
237 | 237 | .. method:: update
|
238 | 238 |
|
239 | 239 | | :sl:`updates the circle position and radius`
|
240 |
| - | :sg:`update((x, y), radius) -> None` |
241 |
| - | :sg:`update(x, y, radius) -> None` |
| 240 | + | :sg:`update((x, y), radius, /) -> None` |
| 241 | + | :sg:`update(x, y, radius, /) -> None` |
242 | 242 |
|
243 | 243 | The `update` method allows you to set the position and radius of a `Circle` object in
|
244 | 244 | place. This method takes either a tuple of (x, y) coordinates, two separate x and
|
|
0 commit comments