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)
}
}Vector.x(v) -> fixed
Returns the x component of v as a fixed. The companion of Vector.y.
program Demo {
handler Step phase Update {
let px = Vector.x(pos)
}
}