Normalize

From MaratisWiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "Returns a normalized vector : nvec = normalize(vec3(x, y, z))")
 
m
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Returns a normalized vector :
+
{{lua-function|normalize|vector}}
  
  nvec = normalize(vec3(x, y, z))
+
Returns a normalized vector.
 +
 
 +
{{lua-function-param|vector|vector to normalize}}
 +
 
 +
  vec = normalize(vec3(x, y, z))
 +
 
 +
[[Category:Lua scripting]]
 +
[[Category:Lua function]]
 +
[[Category:3D math]]

Latest revision as of 19:54, 8 February 2014

normalize(vector)

Returns a normalized vector.

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