Type VMatrix

VMatrix type

Methods

getAngles () Returns angles
getScale () Returns scale
getTranslation () Returns translation
rotate (ang) Rotate the matrix
scale (vec) Scale the matrix
scaleTranslation (num) Scales the absolute translation
setAngles (ang) Sets the angles
setTranslation (vec) Sets the translation
translate (vec) Translate the matrix


Methods

vmatrix_methods:getAngles ()
Returns angles

Return value:

    Angles
vmatrix_methods:getScale ()
Returns scale

Return value:

    Scale
vmatrix_methods:getTranslation ()
Returns translation

Return value:

    Translation
vmatrix_methods:rotate (ang)
Rotate the matrix

Parameters:

  • ang: Angle to rotate by
vmatrix_methods:scale (vec)
Scale the matrix

Parameters:

  • vec: Vector to scale by
vmatrix_methods:scaleTranslation (num)
Scales the absolute translation

Parameters:

  • num: Amount to scale by
vmatrix_methods:setAngles (ang)
Sets the angles

Parameters:

  • ang: New angles
vmatrix_methods:setTranslation (vec)
Sets the translation

Parameters:

  • vec: New translation
vmatrix_methods:translate (vec)
Translate the matrix

Parameters:

  • vec: Vector to translate by

Valid XHTML 1.0!