diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2022-09-14 10:57:42 +0200 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2022-09-14 10:57:42 +0200 |
commit | 5f2eb218e6b91bb2556ed79eb530b1298b423d99 (patch) | |
tree | f1a6b721edd138d09815f6b26ffd76db8fcb2836 | |
parent | 2f7c87acb04bd9dd3f14a55bb3ba7f1621c25f7c (diff) | |
download | code-5f2eb218e6b91bb2556ed79eb530b1298b423d99.tar.gz code-5f2eb218e6b91bb2556ed79eb530b1298b423d99.tar.bz2 code-5f2eb218e6b91bb2556ed79eb530b1298b423d99.zip |
Small refactor.
-rw-r--r-- | rbmp.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -63,11 +63,8 @@ public: red.addEdge(halfedges[0]); blue.addEdge(halfedges[1]); } - double belief() const { - return halfedges[0].X + halfedges[1].X; - } bool active() const { - return belief() >= 0; + return halfedges[0].X + halfedges[1].X >= 0; } }; |