vectorA:tostring

From ComputerCraft Wiki
Jump to: navigation, search


Grid Redstone.png  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

Grid paper.png  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
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox