vector.new
From ComputerCraft Wiki
Revision as of 11:57, 23 February 2013 by
MafiaMoe
(
Talk
|
contribs
)
(
diff
)
← Older revision
|
Latest revision
(
diff
) |
Newer revision →
(
diff
)
Jump to:
navigation
,
search
Function vector.new
Creates a vector.
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
Category
:
API Functions
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Links
Main Site
Forums
Tools
What links here
Related changes
Special pages
Printable version
Permanent link
Page information