diff --git a/include/gz/math/Line2.hh b/include/gz/math/Line2.hh index 40179806..2d46ff7d 100644 --- a/include/gz/math/Line2.hh +++ b/include/gz/math/Line2.hh @@ -180,7 +180,7 @@ namespace gz public: bool Intersect(const Line2 &_line, double _epsilon = 1e-6) const { - static math::Vector2 ignore; + math::Vector2 ignore; return this->Intersect(_line, ignore, _epsilon); } diff --git a/include/gz/math/Line3.hh b/include/gz/math/Line3.hh index 836047e7..7a0fc0b6 100644 --- a/include/gz/math/Line3.hh +++ b/include/gz/math/Line3.hh @@ -263,7 +263,7 @@ namespace gz public: bool Intersect(const Line3 &_line, double _epsilon = 1e-6) const { - static math::Vector3 ignore; + math::Vector3 ignore; return this->Intersect(_line, ignore, _epsilon); }