math/vec2: Minor code tweaks

Avoid multiple floating-point divisions where possible.