API Reference › IVec2 › IVec2.make
method

IVec2.make

IVec2.make(x, y) -> IVec2

Builds an IVec2 from its integer x and y components. This is the usual way to name a tile or grid cell; read the parts back with IVec2.x and IVec2.y.

Example

program Demo {
  handler Step phase Update {
    let cell = IVec2.make(4, 7)
  }
}
← All symbols