Elements.pyECSS.math_utilities.rotate¶
- Elements.pyECSS.math_utilities.rotate(axis=(1.0, 0.0, 0.0), angle=0.0, radians=None)[source]¶
From a euclidean axis vector and a rotation angle, generate a standard 4x4 Rotation Transformation matrix based on the original OpenGL formulas defined in: http://www.glprogramming.com/red/appendixf.html and axis-angle theoretical matrix specification: https://en.wikipedia.org/wiki/Rotation_matrix
- Parameters
axis (tuple, optional) – [vector3], defaults to (1.0,0.0,0.0)
angle (float, optional) – [degrees], defaults to 0.0
radians ([float], optional) – [rads], defaults to None