Difference between revisions of "VectorA:mul"
From ComputerCraft Wiki
| 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]] | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Revision as of 14:04, 23 February 2013
| Multiplies a vector with a scalar and returns the resulting vector. | |
| Syntax | vector:mul(float multiplier) |
| Returns | vector |
| Part of | ComputerCraft |
| API | vector |
Examples