picogl.backend.modern.core.camera.matrix.rotation
This module provides a utility function for generating a combined 3D rotation matrix using PyGLM, a Python binding for OpenGL Mathematics (GLM). It supports rotation around the X and Y axes and returns a transformation matrix suitable for use in rendering pipelines.
Dependencies:
pyglm (GLM for Python)
Functions:
Usage Example:
rotation_matrix = create_rotation_matrix(angle_x=0.5, angle_y=1.0)
Functions
|
create_rotation_matrix |
Module Contents
- picogl.backend.modern.core.camera.matrix.rotation.create_rotation_matrix(angle_x: float, angle_y: float) pyglm.glm.mat4[source]
create_rotation_matrix
- Parameters:
angle_x – float angle (in radians)
angle_y – float angle (in radians)
- Returns:
glm.mat4
Create combined 4x4 3D rotation matrix from x and y angles (in radians), using PyGLM’s built-in rotation helpers.