w = sign(b)\frac{a}{\sqrt{a^2 + b^2}}