Lines Matching refs:box
109 BoxType box( m, M ); in specificTest1() local
112 VERIFY_IS_APPROX(sides, box.sizes() ); in specificTest1()
113 VERIFY_IS_APPROX(sides[1], box.sizes()[1] ); in specificTest1()
114 VERIFY_IS_APPROX(sides[1], box.sizes().maxCoeff() ); in specificTest1()
115 VERIFY_IS_APPROX(sides[0], box.sizes().minCoeff() ); in specificTest1()
117 VERIFY_IS_APPROX( 14.0f, box.volume() ); in specificTest1()
118 VERIFY_IS_APPROX( 53.0f, box.diagonal().squaredNorm() ); in specificTest1()
119 VERIFY_IS_APPROX( std::sqrt( 53.0f ), box.diagonal().norm() ); in specificTest1()
121 VERIFY_IS_APPROX( m, box.corner( BoxType::BottomLeft ) ); in specificTest1()
122 VERIFY_IS_APPROX( M, box.corner( BoxType::TopRight ) ); in specificTest1()
125 VERIFY_IS_APPROX( bottomRight, box.corner( BoxType::BottomRight ) ); in specificTest1()
126 VERIFY_IS_APPROX( topLeft, box.corner( BoxType::TopLeft ) ); in specificTest1()
136 BoxType box( m, M ); in specificTest2() local
139 VERIFY_IS_APPROX(sides, box.sizes() ); in specificTest2()
140 VERIFY_IS_APPROX(sides[1], box.sizes()[1] ); in specificTest2()
141 VERIFY_IS_APPROX(sides[1], box.sizes().maxCoeff() ); in specificTest2()
142 VERIFY_IS_APPROX(sides[0], box.sizes().minCoeff() ); in specificTest2()
144 VERIFY_IS_APPROX( 42, box.volume() ); in specificTest2()
145 VERIFY_IS_APPROX( 62, box.diagonal().squaredNorm() ); in specificTest2()
147 VERIFY_IS_APPROX( m, box.corner( BoxType::BottomLeftFloor ) ); in specificTest2()
148 VERIFY_IS_APPROX( M, box.corner( BoxType::TopRightCeil ) ); in specificTest2()
151 VERIFY_IS_APPROX( bottomRightFloor, box.corner( BoxType::BottomRightFloor ) ); in specificTest2()
152 VERIFY_IS_APPROX( topLeftFloor, box.corner( BoxType::TopLeftFloor ) ); in specificTest2()