API Reference › IVec2 › IVec2.sub
method

IVec2.sub

IVec2.sub(a, b) -> IVec2

Subtracts b from a component-wise, giving the integer offset from one cell to another.

Example

program Demo {
  handler Step phase Update {
    let delta = IVec2.sub(target, pos)
  }
}
← All symbols