returns the specified (x,y) component
(self, x: int, y: int)
| 363 | return self.__width |
| 364 | |
| 365 | def component(self, x: int, y: int) -> float: |
| 366 | """ |
| 367 | returns the specified (x,y) component |
| 368 | """ |
| 369 | if 0 <= x < self.__height and 0 <= y < self.__width: |
| 370 | return self.__matrix[x][y] |
| 371 | else: |
| 372 | raise Exception("change_component: indices out of bounds") |
| 373 | |
| 374 | def change_component(self, x: int, y: int, value: float) -> None: |
| 375 | """ |
no outgoing calls