Types/vector: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
m (more content)
Line 1: Line 1:
{{stub}}
{{stub}}
Table of x and y
A vector is a two-element array containing the x and y components. Unlike Positions, vectors don't use the x, y keys.


eg.
Example:
    vector = {0, 12}
vector = {0, 12}
 
Example:
 
right = {1.0, 0.0}
 
== See also ==
 
* http://lua-api.factorio.com/latest/Concepts.html#Vector

Revision as of 18:36, 6 September 2017

No-building-material-icon.png
This article is a stub, and not comprehensive.
You can help this wiki by expanding it.

A vector is a two-element array containing the x and y components. Unlike Positions, vectors don't use the x, y keys.

Example:

vector = {0, 12}

Example:

right = {1.0, 0.0}

See also