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

# Factorio Prototype Docs Version 2.0.7

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

- default
- sorted

left_top | :: MapPosition |
right_bottom | :: MapPosition |

left_top | :: MapPosition |
right_bottom | :: MapPosition |

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

Type used in

- AsteroidChunkPrototype::collision_box
- CreateParticleTriggerEffectItem::offset_deviation
- FogMaskShapeDefinition::rect
- TileBuildabilityRule::area
- UtilityConstants::asteroid_spawning_offset
- UtilityConstants::space_platform_max_size