From 187f10b9d968c3b2bf98161af51b7eedd9472d64 Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Mon, 15 Jul 2024 11:40:18 -0700 Subject: [PATCH] Line*.hh: remove unneeded use of static variable (#607) Fixes #269. Signed-off-by: Steve Peters --- include/gz/math/Line2.hh | 2 +- include/gz/math/Line3.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/gz/math/Line2.hh b/include/gz/math/Line2.hh index 40179806e..2d46ff7df 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 836047e7b..7a0fc0b66 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); }