Factorio.com|Forums|Wiki|Mod Portal|API Docs Prototype|Runtime|Auxiliary

# Factorio Runtime Docs Version 2.0.7

## 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}}