Factorio Prototype DocsVersion 1.1.107

Vector :: struct or {double, double} Example code

A vector is a two-element array or dictionary containing the x and y components. Positive x goes east, positive y goes south.

Properties

x :: double
y :: double

Properties

x :: double

y :: double

Examples

shift = {0, 12}
right = {1.0, 0.5}
vector = {x = 2.3, y = 3.4}

Type used in

Prototypes

Types