vectorA:tostring
From ComputerCraft Wiki
Function vector:tostring | |
Returns a string representation of the vector in the form of "x,y,z". | |
Syntax | vector:tostring() |
Returns | string |
Part of | ComputerCraft |
API | vector |
Examples
Example | |
Prints the string representation of the vector. | |
Code |
local a = vector.new(1, 2, 3) local c = a:tostring() print(c) --1,2,3 |