IVec2自动生成
分类:类型
二维整数向量:单元格、偏移、at / put 的地址。
IVec2 IVec3Integers in two or three components: a cell, an offset, an address for at and put.
接受此类型的内置函数
Section titled “接受此类型的内置函数”| 返回 | 函数 | 分类 |
|---|---|---|
IVec2 |
abs(x: IVec2) |
数学函数 |
T |
at(field: Grid<T>, at: IVec2) |
Field 读取 |
IVec2 |
clamp(x: IVec2, low: Int, high: Int) |
数学函数 |
IVec2 |
clamp(x: IVec2, low: IVec2, high: IVec2) |
数学函数 |
DVec2 |
double(x: IVec2) |
类型转换 |
T |
fetch(field: Grid<T>, at: IVec2) |
Field 读取 |
Vec2 |
float(x: IVec2) |
类型转换 |
IVec2 |
icoord() |
上下文函数 |
IVec2 |
idomain() |
上下文函数 |
IVec2 |
int(x: Vec2) |
类型转换 |
IVec2 |
int(x: DVec2) |
类型转换 |
IVec2 |
int(x: LVec2) |
类型转换 |
IVec2 |
isize(field: Grid<T>) |
Field 读取 |
IVec2 |
ivec2(x: Int, y: Int) |
构造函数 |
IVec3 |
ivec3(xy: IVec2, z: Int) |
构造函数 |
IVec3 |
ivec3(x: Int, yz: IVec2) |
构造函数 |
IVec4 |
ivec4(xy: IVec2, zw: IVec2) |
构造函数 |
LVec2 |
long(x: IVec2) |
类型转换 |
LVec2 |
lvec2(v: IVec2) |
构造函数 |
IVec2 |
max(a: IVec2, b: Int) |
数学函数 |
IVec2 |
max(a: IVec2, b: IVec2) |
数学函数 |
IVec2 |
min(a: IVec2, b: Int) |
数学函数 |
IVec2 |
min(a: IVec2, b: IVec2) |
数学函数 |
T |
put(memory: Grid<T>, at: IVec2, value: T) |
memory 写入 |
IVec2 |
sign(x: IVec2) |
数学函数 |

