Elements.pyECSS.math_utilities.scale

Elements.pyECSS.math_utilities.scale(x, y=None, z=None)[source]

Convert a euclidean scaling vector in homogeneous coordinates to a standard 4x4 Scaling 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 for scaling in 3 dimensions or a vector x: vec(x) for uniform scaling across x,y,z dimensions

Parameters
  • x (float, optional) – [description], defaults to 1.0

  • y ([type], optional) – [description], defaults to None

  • z ([type], optional) – [description], defaults to None