Logo Mibo

InstanceSpan Type

How many cells one drawn instance covers.

Union cases

Union case Description

One

Full Usage: One

The identity: the anchor cell only. `Span(1, 1)` and `Radius 0` mean the same thing, so a computed span needs no special case.

Radius r

Full Usage: Radius r

Parameters:
    r : int

A disc of hex steps on a hex grid, centred on the anchor cell. The bounding rectangle is `(x - r, y - r, 2r + 1, 2r + 1)` in offset space.

r : int

Span(across, deep)

Full Usage: Span(across, deep)

Parameters:
    across : int
    deep : int

A rectangle of offset cells on a square grid, growing toward +X and +Z from the anchor cell.

across : int
deep : int

Instance members

Instance member Description

this.IsOne

Full Usage: this.IsOne

Returns: bool
Returns: bool

this.IsRadius

Full Usage: this.IsRadius

Returns: bool
Returns: bool

this.IsSpan

Full Usage: this.IsSpan

Returns: bool
Returns: bool

Type something to start searching.