Skip to content

Commit

Permalink
Define angles more clearly
Browse files Browse the repository at this point in the history
  • Loading branch information
sethrj committed May 7, 2024
1 parent 9ec131f commit eb078c3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/orange/orangeinp/ConvexRegion.test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -662,12 +662,14 @@ TEST_F(GenTrapTest, trap_thetaphi)

TEST_F(GenTrapTest, trap_g4)
{
auto result
= this->test(GenTrap::from_trap(4,
Turn{0.013888888888889},
Turn{0.027777777777778},
{2, 1, 1, 0.26794919243112},
{3, 1.5, 1.5, 0.26794919243112}));
constexpr Turn degree{real_type{1} / 360};
real_type tan_alpha = std::tan(15 * native_value_from(degree));

auto result = this->test(GenTrap::from_trap(4,
5 * degree,
10 * degree,
{2, 1, 1, tan_alpha},
{3, 1.5, 1.5, tan_alpha}));
static char const expected_node[] = "all(+0, -1, +2, -3, -4, +5)";
static char const* const expected_surfaces[]
= {"Plane: z=-4",
Expand Down

0 comments on commit eb078c3

Please sign in to comment.