MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / matrix

Method matrix

dm_control/mujoco/engine.py:800–808  ·  view source on GitHub ↗

Returns the 3x4 camera matrix. For a description of the camera matrix see, e.g., https://en.wikipedia.org/wiki/Camera_matrix. For a usage example, see the associated test.

(self)

Source from the content-addressed store, hash-verified

798
799 @property
800 def matrix(self):
801 """Returns the 3x4 camera matrix.
802
803 For a description of the camera matrix see, e.g.,
804 https://en.wikipedia.org/wiki/Camera_matrix.
805 For a usage example, see the associated test.
806 """
807 image, focal, rotation, translation = self.matrices()
808 return image @ focal @ rotation @ translation
809
810 def update(self, scene_option=None):
811 """Updates geometry used for rendering.

Callers

nothing calls this directly

Calls 1

matricesMethod · 0.95

Tested by

no test coverage detected