dexp.volumerender.transform_matrices

compatible with OpenGL, i.e.

mat4_perspective = gluPerspective …etc

author: Martin Weigert email: mweigert@mpi-cbg.de

Functions

mat4_frustrum(left, right, bottom, top, ...)

mat4_identity()

mat4_lookat(eye, center, up)

mat4_ortho([x1, x2, y1, y2, z1, z2])

like glOrtho

mat4_perspective([fovy, aspect, z1, z2])

like gluPerspective(fovy, aspect, zNear, zFar) fovy in degrees

mat4_rotation([w, x, y, z])

mat4_rotation_euler([yaw, pitch, roll])

in z-y'-x' convention

mat4_scale([x, y, z])

mat4_stereo_perspective([fovy, aspect, z1, ...])

mat4_translate([x, y, z])