Skip to content

Commit 8eda3d2

Browse files
committed
Line*.hh: remove unneeded use of static variable
Fixes #269. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
1 parent 17585a9 commit 8eda3d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/gz/math/Line2.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ namespace gz
180180
public: bool Intersect(const Line2<T> &_line,
181181
double _epsilon = 1e-6) const
182182
{
183-
static math::Vector2<T> ignore;
183+
math::Vector2<T> ignore;
184184
return this->Intersect(_line, ignore, _epsilon);
185185
}
186186

include/gz/math/Line3.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ namespace gz
263263
public: bool Intersect(const Line3<T> &_line,
264264
double _epsilon = 1e-6) const
265265
{
266-
static math::Vector3<T> ignore;
266+
math::Vector3<T> ignore;
267267
return this->Intersect(_line, ignore, _epsilon);
268268
}
269269

0 commit comments

Comments
 (0)