---
id: vector-x
name: Vector.x
category: vector
kind: namespace-method
tokens: Vector.x
sig: Vector.x(v) -> fixed
tip: The x component of a vector.
order: 2
ns: Vector
member: x
---
Returns the x component of v as a fixed. The companion of Vector.y.
```ludic
program Demo {
handler Step phase Update {
let px = Vector.x(pos)
}
}
```