# {py:mod}`simvx.core.math.matrices` ```{py:module} simvx.core.math.matrices ``` ```{autodoc2-docstring} simvx.core.math.matrices :allowtitles: ``` ## Module Contents ### Functions ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`quat_to_mat4 ` - ```{autodoc2-docstring} simvx.core.math.matrices.quat_to_mat4 :summary: ``` * - {py:obj}`identity ` - ```{autodoc2-docstring} simvx.core.math.matrices.identity :summary: ``` * - {py:obj}`perspective ` - ```{autodoc2-docstring} simvx.core.math.matrices.perspective :summary: ``` * - {py:obj}`look_at ` - ```{autodoc2-docstring} simvx.core.math.matrices.look_at :summary: ``` * - {py:obj}`translate ` - ```{autodoc2-docstring} simvx.core.math.matrices.translate :summary: ``` * - {py:obj}`rotate ` - ```{autodoc2-docstring} simvx.core.math.matrices.rotate :summary: ``` * - {py:obj}`scale ` - ```{autodoc2-docstring} simvx.core.math.matrices.scale :summary: ``` * - {py:obj}`orthographic ` - ```{autodoc2-docstring} simvx.core.math.matrices.orthographic :summary: ``` ```` ### Data ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`__all__ ` - ```{autodoc2-docstring} simvx.core.math.matrices.__all__ :summary: ``` ```` ### API ````{py:data} __all__ :canonical: simvx.core.math.matrices.__all__ :value: > ['identity', 'perspective', 'look_at', 'translate', 'rotate', 'scale', 'orthographic', 'quat_to_mat4... ```{autodoc2-docstring} simvx.core.math.matrices.__all__ ``` ```` ````{py:function} quat_to_mat4(q, dtype: numpy.dtype = np.float32) -> numpy.ndarray :canonical: simvx.core.math.matrices.quat_to_mat4 ```{autodoc2-docstring} simvx.core.math.matrices.quat_to_mat4 ``` ```` ````{py:function} identity(dtype: numpy.dtype = np.float32) -> numpy.ndarray :canonical: simvx.core.math.matrices.identity ```{autodoc2-docstring} simvx.core.math.matrices.identity ``` ```` ````{py:function} perspective(fov: float, aspect: float, near: float, far: float, dtype: numpy.dtype = np.float32) -> numpy.ndarray :canonical: simvx.core.math.matrices.perspective ```{autodoc2-docstring} simvx.core.math.matrices.perspective ``` ```` ````{py:function} look_at(eye: numpy.ndarray | tuple[float, float, float], center: numpy.ndarray | tuple[float, float, float], up: numpy.ndarray | tuple[float, float, float], dtype: numpy.dtype = np.float32) -> numpy.ndarray :canonical: simvx.core.math.matrices.look_at ```{autodoc2-docstring} simvx.core.math.matrices.look_at ``` ```` ````{py:function} translate(t: numpy.ndarray | tuple[float, float, float], dtype: numpy.dtype = np.float32) -> numpy.ndarray :canonical: simvx.core.math.matrices.translate ```{autodoc2-docstring} simvx.core.math.matrices.translate ``` ```` ````{py:function} rotate(axis: numpy.ndarray | tuple[float, float, float], angle: float, dtype: numpy.dtype = np.float32) -> numpy.ndarray :canonical: simvx.core.math.matrices.rotate ```{autodoc2-docstring} simvx.core.math.matrices.rotate ``` ```` ````{py:function} scale(s: numpy.ndarray | tuple[float, float, float] | float, dtype: numpy.dtype = np.float32) -> numpy.ndarray :canonical: simvx.core.math.matrices.scale ```{autodoc2-docstring} simvx.core.math.matrices.scale ``` ```` ````{py:function} orthographic(left: float, right: float, bottom: float, top: float, near: float, far: float, dtype: numpy.dtype = np.float32) -> numpy.ndarray :canonical: simvx.core.math.matrices.orthographic ```{autodoc2-docstring} simvx.core.math.matrices.orthographic ``` ````