API Reference › IVec2 › IVec2.x
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))
  }
}
← All symbols