Fixed typo in an unused template code, where MSVC does not complain,
but GCC does.
This commit is contained in:
parent
e87f90af9f
commit
ad2dfe345d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue