madgui.survey.transform module¶
Functions
|
Create a PyOpenGL compatible numpy array from list data. |
|
Invert a coordinate system transformation |
|
Return transformation matrix for a camera with specified position, view target and upwards direction. |
|
Return a perspective projection matrix. |
|
Convert a QMatrix4x4 to a numpy array. |
|
Return a rotation matrix for rotation angles as defined in MAD-X. |
|
Return a translation matrix. |
-
madgui.survey.transform.
gl_array
(data)[source]¶ Create a PyOpenGL compatible numpy array from list data.
-
madgui.survey.transform.
inverted
(matrix)[source]¶ Invert a coordinate system transformation
M = T @ R
.
-
madgui.survey.transform.
look_at
(position, target, up)[source]¶ Return transformation matrix for a camera with specified position, view target and upwards direction.
-
madgui.survey.transform.
perspective_projection
(fov, aspect_ratio, near_plane, far_plane)[source]¶ Return a perspective projection matrix.