Elements.pyECSS.math_utilities.translate¶
- Elements.pyECSS.math_utilities.translate(x=0.0, y=0.0, z=0.0)[source]¶
Convert a euclidean translation vector in homogeneous coordinates to a standard 4x4 Translation Transformation matrix based on the original OpenGL formulas defined in: http://www.glprogramming.com/red/appendixf.html and OpenGL 1.0 specification. The matrix will be created either from 3 euclidean coordinates or a vector x: vec(x)
- Parameters
x (float, optional or vec) – [description], defaults to 0.0
y (float, optional) – [description], defaults to 0.0
z (float, optional) – [description], defaults to 0.0