Factorio Runtime DocsVersion 2.0.14

BoundingBox :: table or {MapPosition, MapPosition}

Two positions, specifying the top-left and bottom-right corner of the box respectively. Like with MapPosition, the names of the members may be omitted. When read from the game, the third member orientation is present if it is non-zero.

Table fields

left_top :: MapPosition
right_bottom :: MapPosition
orientation :: RealOrientation?

Examples

-- Explicit definition
{left_top = {x = -2, y = -3}, right_bottom = {x = 5, y = 8}}
-- Shorthand
{{-2, -3}, {5, 8}}

Classes

Concepts

Events

Defines