\[ ax + by = \sqrt{a^2+b^2} \sqrt{x^2+y^2} \cos \theta \]