Dot
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | Returns the dot product of two vectors | + | {{lua-function|dot|vector1, vector2}} |
+ | |||
+ | Returns the dot product of two vectors. | ||
+ | |||
+ | {{lua-function-param|vector1|first vector}} | ||
+ | {{lua-function-param|vector2|second vector}} | ||
dotProduct = dot(vecA, vecB) | dotProduct = dot(vecA, vecB) | ||
[[Category:Lua scripting]] | [[Category:Lua scripting]] | ||
+ | [[Category:Lua function]] | ||
+ | [[Category:3D math]] |
Latest revision as of 18:55, 8 February 2014
dot(vector1, vector2)
Returns the dot product of two vectors.
-
vector1
: first vector -
vector2
: second vector
dotProduct = dot(vecA, vecB)