method
Vector.distance
Vector.distance(a, b) -> fixed
Returns the distance between points a and b — Vector.length(Vector.sub(a, b)). Handy for range checks and proximity triggers.
Example
program Demo {
handler Step phase Update {
if Vector.distance(pos, target) < 8.0 { arrived() }
}
}