From 927feb0297169953f84873dd2859a6dbe50a41a4 Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Wed, 16 Oct 2019 16:58:39 +0200 Subject: [PATCH] Actually use the smallest value possible --- src/symbols.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/symbols.rs b/src/symbols.rs index e0fbfbf..5d9cfd4 100644 --- a/src/symbols.rs +++ b/src/symbols.rs @@ -135,7 +135,7 @@ impl Shape { pub fn volume(&self) -> f64 { match self { - Shape::Point(_, _) => 1.0, // This is the smallest non-zero volume possible //TODO DOUBLE CHECK IT IS TRUE + Shape::Point(_, _) => std::f64::EPSILON, // The smallest non-zero volume possible Shape::HyperRectangle(_space, pos) => { //TODO: At this time, only aligned to the axes, defined by two points, hyperrectangles are supported. assert_eq!(pos.len(), 2);