Types/vector: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m more content
m Positive x goes towards east, positive y goes towards south.
Line 1: Line 1:
{{stub}}
{{stub}}
A vector is a two-element array containing the x and y components. Unlike Positions, vectors don't use the x, y keys.
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.  


Example:
Example:

Revision as of 16:22, 19 October 2017

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. Positive x goes towards east, positive y goes towards south.

Example:

vector = {0, 12}

Example:

right = {1.0, 0.0}

See also