API Reference › Vector › Vector.x
method

Vector.x

Vector.x(v) -> fixed

Returns the x component of v as a fixed. The companion of Vector.y.

Example

program Demo {
  handler Step phase Update {
    let px = Vector.x(pos)
  }
}
← All symbols