IVec2Generated
Category: Types
Integers in two or three components: a cell, an offset, an address for at and put.
Syntax
Section titled “Syntax”IVec2 IVec3Description
Section titled “Description”Integers in two or three components: a cell, an offset, an address for at and put.
Builtins that take this type
Section titled “Builtins that take this type”| Returns | Function | Category |
|---|---|---|
IVec2 |
abs(x: IVec2) |
math |
T |
at(field: Grid<T>, at: IVec2) |
field |
IVec2 |
clamp(x: IVec2, low: Int, high: Int) |
math |
IVec2 |
clamp(x: IVec2, low: IVec2, high: IVec2) |
math |
DVec2 |
double(x: IVec2) |
conversion |
T |
fetch(field: Grid<T>, at: IVec2) |
field |
Vec2 |
float(x: IVec2) |
conversion |
IVec2 |
icoord() |
context |
IVec2 |
idomain() |
context |
IVec2 |
int(x: Vec2) |
conversion |
IVec2 |
int(x: DVec2) |
conversion |
IVec2 |
int(x: LVec2) |
conversion |
IVec2 |
isize(field: Grid<T>) |
field |
IVec2 |
ivec2(x: Int, y: Int) |
construction |
IVec3 |
ivec3(xy: IVec2, z: Int) |
construction |
IVec3 |
ivec3(x: Int, yz: IVec2) |
construction |
IVec4 |
ivec4(xy: IVec2, zw: IVec2) |
construction |
LVec2 |
long(x: IVec2) |
conversion |
LVec2 |
lvec2(v: IVec2) |
construction |
IVec2 |
max(a: IVec2, b: Int) |
math |
IVec2 |
max(a: IVec2, b: IVec2) |
math |
IVec2 |
min(a: IVec2, b: Int) |
math |
IVec2 |
min(a: IVec2, b: IVec2) |
math |
T |
put(memory: Grid<T>, at: IVec2, value: T) |
memory |
IVec2 |
sign(x: IVec2) |
math |

