Grid自动生成
分类:类型
二维 Field:网格,coord() 给出当前元素的列与行,size(f)、at(f, vec2) 读取。
Grid<T>A grid of elements, coord() the column and row of one; size(f) and at(f, vec2) read it.
接受此类型的内置函数
Section titled “接受此类型的内置函数”| 返回 | 函数 | 分类 |
|---|---|---|
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 读取 |

