Fixed typo in an unused template code, where MSVC does not complain,

but GCC does.
This commit is contained in:
Vojtech Bubnik 2021-10-27 16:07:23 +02:00
parent e87f90af9f
commit ad2dfe345d

View File

@ -71,7 +71,7 @@ struct CircleSq {
bool contains_with_eps(const Vector &p, const Scalar relative_epsilon2 = Scalar((1 + 1e-14) * (1 + 1e-14))) const bool contains_with_eps(const Vector &p, const Scalar relative_epsilon2 = Scalar((1 + 1e-14) * (1 + 1e-14))) const
{ Scalar r2 = this->radius2 * relative_epsilon2; return (p - this->center).squaredNorm() < r2; } { Scalar r2 = this->radius2 * relative_epsilon2; return (p - this->center).squaredNorm() < r2; }
static CircleSq make_invalid() { return Circle { { 0, 0 }, -1 }; } static CircleSq make_invalid() { return CircleSq { { 0, 0 }, -1 }; }
}; };
// 2D circle defined by its center and radius // 2D circle defined by its center and radius