Changes the viewport size. Args: width: Viewport width, in pixels. height: Viewport height, in pixels.
(self, width, height)
| 623 | self._screen_size = mujoco.MjrRect(0, 0, width, height) |
| 624 | |
| 625 | def set_size(self, width, height): |
| 626 | """Changes the viewport size. |
| 627 | |
| 628 | Args: |
| 629 | width: Viewport width, in pixels. |
| 630 | height: Viewport height, in pixels. |
| 631 | """ |
| 632 | self._screen_size.width = width |
| 633 | self._screen_size.height = height |
| 634 | |
| 635 | def screen_to_viewport(self, screen_coordinates): |
| 636 | """Converts screen coordinates to viewport coordinates. |
no outgoing calls