PYME.LMVis.mv_math module¶
Simple replacements for deprecated OpenGL projection and modelview functions
- PYME.LMVis.mv_math.frustrum(left, right, bottom, top, near, far)¶
Create a frustum projection matrix (replace glFrustum and remove glm dependency)
- PYME.LMVis.mv_math.mat3_to_mat4(m)¶
Convert a 3x3 matrix to a 4x4 matrix
- PYME.LMVis.mv_math.ortho(left, right, bottom, top, near, far)¶
Create an orthographic projection matrix (replace glOrtho and remove glm dependency)
- PYME.LMVis.mv_math.scale(m, x, y, z)¶
Scale a matrix (replace glScale and remove glm dependency)
- PYME.LMVis.mv_math.scale_m(x, y, z)¶
Create a scaling matrix (replace glScale and remove glm dependency)
- PYME.LMVis.mv_math.translate(m, x, y, z)¶
Translate a matrix (replace glTranslate and remove glm dependency)
- PYME.LMVis.mv_math.translate_m(x, y, z)¶
Create a translation matrix (replace glTranslate and remove glm dependency)
- PYME.LMVis.mv_math.vec3_to_vec4(v)¶
Convert a 3-element vector to a 4-element vector