From c2aa474e128b4c133786759819463e30d93359a6 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期三, 17 六月 2020 13:36:46 +0800 Subject: [PATCH] time --- algorithm/graph.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/algorithm/graph.c b/algorithm/graph.c index 6715491..2b15a19 100644 --- a/algorithm/graph.c +++ b/algorithm/graph.c @@ -23,11 +23,16 @@ return *this; } +// bool Figure::contains(const Point& p) const +// { +// auto c = 0; +// for (auto e : edges) if (e.isCorss(p)) c++; +// return c % 2 != 0; +// } + bool Figure::contains(const Point& p) const { - auto c = 0; - for (auto e : edges) if (e.isCorss(p)) c++; - return c % 2 != 0; + return true; } /** -- Gitblit v1.8.0