method
Vector.dot
Vector.dot(a, b) -> fixed
Returns the dot product ax*bx + ay*by as a fixed. Zero when the vectors are perpendicular; use it to project one vector onto another or to test facing.
Example
program Demo {
handler Step phase Update {
let facing = Vector.dot(forward, toTarget)
}
}