GridGenerated
Category: Types
A grid of elements, coord() the column and row of one; size(f) and at(f, vec2) read it.
Syntax
Section titled “Syntax”Grid<T>Description
Section titled “Description”A grid of elements, coord() the column and row of one; size(f) and at(f, vec2) read it.
Builtins that take this type
Section titled “Builtins that take this type”| Returns | Function | Category |
|---|---|---|
T |
at(field: Grid<T>, at: Vec2) |
field |
T |
at(field: Grid<T>, at: IVec2) |
field |
T |
at_linear(field: Grid<T>, position: Vec2) |
field |
Int |
count(field: Grid<T>) |
field |
T |
fetch(field: Grid<T>, at: Vec2) |
field |
T |
fetch(field: Grid<T>, at: IVec2) |
field |
IVec2 |
isize(field: Grid<T>) |
field |
T |
put(memory: Grid<T>, at: Vec2, value: T) |
memory |
T |
put(memory: Grid<T>, at: IVec2, value: T) |
memory |
T |
sample(field: Grid<T>) |
field |
Vec2 |
size(field: Grid<T>) |
field |

