areColinear

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.

bool
areColinear
(
T
)
(
in T a
,
in T b
)

Meta