138 const double r = 5.0;
139 for (
int i = 0; i < 5; ++i)
141 const double angle = 2.0 *
M_PI * i / 5.0;
158 <<
"radius " << c.radius() <<
" expected ~5";
173 for (
int i = 0; i < 10; ++i)
300 const double cx = 5.0, cy = 5.0,
r = 10.0;
301 for (
int i = 0; i < 20; ++i)
303 const double angle = 2.0 *
M_PI * i / 20.0;
320 <<
"radius " << c.radius() <<
" expected ~10";
327 for (
int x = 0; x < 10; ++x)
328 for (
int y = 0;
y < 10; ++
y)
340 std::mt19937
gen(42);
341 std::uniform_real_distribution<double> dist(-100.0, 100.0);
344 for (
int i = 0; i < 200; ++i)
Iterator on the items of list.
Dynamic singly linked list with functional programming support.
T & append(const T &item)
bool has_curr() const noexcept
Smallest circle enclosing a point set (Welzl's algorithm).
static Circle from_two_points(const Point &a, const Point &b)
Smallest circle with a and b on its boundary (diameter).
static Circle from_three_points(const Point &a, const Point &b, const Point &c)
Circumscribed circle through three points.
Represents a point with rectangular coordinates in a 2D plane.
TEST_F(GeomAlgorithmsTest, MEC_SinglePoint)
Main namespace for Aleph-w library functions.
Divide_Conquer_DP_Result< Cost > divide_and_conquer_partition_dp(const size_t groups, const size_t n, Transition_Cost_Fn transition_cost, const Cost inf=dp_optimization_detail::default_inf< Cost >())
Optimize partition DP using divide-and-conquer optimization.
Geom_Number square_root(const Geom_Number &x)
Square root of x (wrapper over mpfr).
bool diff(const C1 &c1, const C2 &c2, Eq e=Eq())
Check if two containers differ.
mpq_class Geom_Number
Numeric type used by the geometry module.