Difference between revisions of "VectorA:mul"
From ComputerCraft Wiki
(Changing int to number) |
|||
| (One intermediate revision by one other user not shown) | |||
| Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=vector:mul | |name=vector:mul | ||
| − | |args= | + | |args={{type|number}} multiplier |
|returns=[[vector (API)|vector]] | |returns=[[vector (API)|vector]] | ||
|api=vector | |api=vector | ||
| Line 14: | Line 14: | ||
local c = a:mul(b) | local c = a:mul(b) | ||
| + | --local c = a * b | ||
print(c.x) | print(c.x) | ||
| Line 35: | Line 36: | ||
[[Category:API_Functions]] | [[Category:API_Functions]] | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Latest revision as of 13:11, 18 July 2013
| Multiplies a vector with a scalar and returns the resulting vector. | |
| Syntax | vector:mul(number multiplier) |
| Returns | vector |
| Part of | ComputerCraft |
| API | vector |
Examples