diff --git a/src/rect.rs b/src/rect.rs index b66fa31..b9b491a 100644 --- a/src/rect.rs +++ b/src/rect.rs @@ -220,8 +220,19 @@ where T: Copy + Clone + Zero + PartialOrd + PartialEq + Add + Sub]) -> Self { + // TODO: it would be less confusing if we inflated the size by the smallest + // possible value for the given scalar type to avoid the confusion described + // above. if points.is_empty() { return TypedRect::zero(); }