SyntaxFix
Write A Post
Hire A Developer
Questions
he does an integer divide, which means 3 / 4 = 0. cast one of the brackets to float
(float)(a.y - b.y) / (a.x - b.x);