method
IVec2.x
IVec2.x(v) -> int
Reads the x (column) component of an IVec2 as a plain int.
Example
program Demo {
handler Step phase Update {
let col = IVec2.x(IVec2.make(4, 7))
}
}IVec2.x(v) -> int
Reads the x (column) component of an IVec2 as a plain int.
program Demo {
handler Step phase Update {
let col = IVec2.x(IVec2.make(4, 7))
}
}