Factorio Prototype DocsVersion 2.0.15

SimpleBoundingBox :: struct or {MapPosition, MapPosition} Example code

An axis aligned bounding box.

SimpleBoundingBoxes are usually specified with the short-hand notation of passing an array of exactly 2 numbers. The first position is left_top, the second position is right_bottom.

Positive x goes towards east, positive y goes towards south. This means that the upper-left point is the least dimension in x and y, and lower-right is the greatest.

Properties

left_top :: MapPosition

right_bottom :: MapPosition

Examples

{{-0.4, -0.4}, {0.4, 0.4}}
-- long definition
{left_top = {x = -2, y = -3}, right_bottom = {x = 5, y = 8}}

Prototypes

Types

Defines