vector.new
From ComputerCraft Wiki
Jump to:
navigation
,
search
Function vector.new
Creates a vector.
Syntax
vector.new(
number
x,
number
y,
number
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
Category
:
API Functions
Personal tools
Log in / create account
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
Actions
Search
Navigation
Main page
Recent changes
Random page
Links
Main Site
Forums
Toolbox
What links here
Related changes
Special pages
Printable version
Permanent link