mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 20:26:03 +08:00
Add unit test for AlignedBox::center
This commit is contained in:
parent
bcc0f38f98
commit
12350d3ac7
@ -48,6 +48,8 @@ template<typename BoxType> void alignedbox(const BoxType& _box)
|
|||||||
b0.extend(p0);
|
b0.extend(p0);
|
||||||
b0.extend(p1);
|
b0.extend(p1);
|
||||||
VERIFY(b0.contains(p0*s1+(Scalar(1)-s1)*p1));
|
VERIFY(b0.contains(p0*s1+(Scalar(1)-s1)*p1));
|
||||||
|
VERIFY(b0.contains(b0.center()));
|
||||||
|
VERIFY(b0.center()==(p0+p1)/Scalar(2));
|
||||||
|
|
||||||
(b2 = b0).extend(b1);
|
(b2 = b0).extend(b1);
|
||||||
VERIFY(b2.contains(b0));
|
VERIFY(b2.contains(b0));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user