Types/vector: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
m (phrasing of vector positions)
Line 1: Line 1:
A vector is a two-element array containing the x and y components. Unlike Positions, vectors don't use the x, y keys. Positive x goes towards east, positive y goes towards south.  
A vector is a two-element array containing the x and y components. Unlike Positions, vectors don't use the x, y keys. For a position parameter described using a vector, see [[Types/Position]] for how dimensions are represented.


Example:
Example:

Revision as of 14:54, 11 June 2022

A vector is a two-element array containing the x and y components. Unlike Positions, vectors don't use the x, y keys. For a position parameter described using a vector, see Types/Position for how dimensions are represented.

Example:

vector = {0, 12}

Example:

right = {1.0, 0.5}

See also