API Reference › IVec2 › IVec2.equal
method

IVec2.equal

IVec2.equal(a, b) -> bool

Compares two integer vectors for exact equality — true only when both the x and y components match.

Example

program Demo {
  handler Step phase Update {
    if IVec2.equal(pos, goal) { win() }
  }
}
← All symbols