GetInverseVector

From MaratisWiki
(Difference between revisions)
Jump to: navigation, search
m
m
 
Line 2: Line 2:
  
 
Returns the inverse vector according to the object current matrix. Mainly used to transform a global coordinate vector in the object's local coordinates.
 
Returns the inverse vector according to the object current matrix. Mainly used to transform a global coordinate vector in the object's local coordinates.
 +
 +
{{lua-function-param|object|object to operate on}}
 +
{{lua-function-param|vector|vector}}
  
 
  vec = getInverseVector(object, vec3(x, y, z))
 
  vec = getInverseVector(object, vec3(x, y, z))

Latest revision as of 00:21, 9 February 2014

getInverseVector(object, vector)

Returns the inverse vector according to the object current matrix. Mainly used to transform a global coordinate vector in the object's local coordinates.

  • object : object to operate on
  • vector : vector
vec = getInverseVector(object, vec3(x, y, z))
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox