Difference between revisions of "VectorA:add"
From ComputerCraft Wiki
| (One intermediate revision by the same user not shown) | |||
| Line 6: | Line 6: | ||
|api=vector | |api=vector | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
| − | |desc= | + | |desc=Adds the two vectors and returns the resulting vector. |
|examples= | |examples= | ||
{{Example | {{Example | ||
| Line 14: | Line 14: | ||
local c = a:add(b) | local c = a:add(b) | ||
| + | --local c = a + b | ||
print(c.x) | print(c.x) | ||
Latest revision as of 11:58, 23 February 2013
| Adds the two vectors and returns the resulting vector. | |
| Syntax | vector:add(vector vect) |
| Returns | vector |
| Part of | ComputerCraft |
| API | vector |