mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Return 0 volume for empty AlignedBox
This commit is contained in:
committed by
Charles Schlosser
parent
64edfbed04
commit
251ec42087
@@ -51,6 +51,8 @@ void alignedbox(const BoxType& box) {
|
||||
kill_extra_precision(p0);
|
||||
kill_extra_precision(p1);
|
||||
|
||||
VERIFY(numext::equal_strict(b0.volume(), Scalar(0)));
|
||||
|
||||
b0.extend(p0);
|
||||
b0.extend(p1);
|
||||
VERIFY(b0.contains(p0 * s1 + (Scalar(1) - s1) * p1));
|
||||
@@ -423,6 +425,8 @@ void alignedboxCastTests(const BoxType& box) {
|
||||
|
||||
BoxType b0(dim);
|
||||
|
||||
VERIFY(numext::equal_strict(b0.volume(), Scalar(0)));
|
||||
|
||||
b0.extend(p0);
|
||||
b0.extend(p1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user