Made IsConvex a little more robust - now using epsilons for what it considers a straight edge

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