Check if a and b are colinear. a and b are colinear iff a.x / a.y == b.x / b.y holds. We can avoid the division by multiplying out.
See Implementation
Check if a and b are colinear. a and b are colinear iff a.x / a.y == b.x / b.y holds. We can avoid the division by multiplying out.