vector.new
From ComputerCraft Wiki
Function vector.new | |
Creates and returns a vector with the specified coordinates. | |
Syntax | vector.new(float x, float y, float z) |
Returns | vector |
Part of | ComputerCraft |
API | vector |
Examples
Example | |
Creates a vector and prints the components | |
Code |
local a = vector.new(1, 2, 3) print(a.x) print(a.y) print(a.z) --1 --2 --3 |