Modified IsConvex helper to handle lines of collinear points

Signed-off-by: Martin Evans <martindevans@gmail.com>