summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2022-09-14 10:57:42 +0200
committerJaron Kent-Dobias <jaron@kent-dobias.com>2022-09-14 10:57:42 +0200
commit5f2eb218e6b91bb2556ed79eb530b1298b423d99 (patch)
treef1a6b721edd138d09815f6b26ffd76db8fcb2836
parent2f7c87acb04bd9dd3f14a55bb3ba7f1621c25f7c (diff)
downloadcode-5f2eb218e6b91bb2556ed79eb530b1298b423d99.tar.gz
code-5f2eb218e6b91bb2556ed79eb530b1298b423d99.tar.bz2
code-5f2eb218e6b91bb2556ed79eb530b1298b423d99.zip
Small refactor.
-rw-r--r--rbmp.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/rbmp.cpp b/rbmp.cpp
index 2b73e59..5ec8300 100644
--- a/rbmp.cpp
+++ b/rbmp.cpp
@@ -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;
}
};