2#include <Core/Geometry/Obb.hpp>
3#include <Core/Math/Math.hpp>
5#include <catch2/catch_test_macros.hpp>
7TEST_CASE(
"Core/Geometry/Obb",
"[unittests][Core][Core/Geometry][Obb]" ) {
10 SECTION(
"Simple tests" ) {
14 REQUIRE( obb.toAabb().isEmpty() );
15 REQUIRE( obb.toAabb().isApprox( aabb ) );
16 obb.transform().rotate( AngleAxis( Math::Pi, Vector3::UnitX() ) );
17 REQUIRE( obb.toAabb().isEmpty() );
18 REQUIRE( obb.toAabb().isApprox( aabb ) );
An oriented bounding box.
This namespace contains everything "low level", related to data, datastuctures, and computation.