Skip to content

Commit

Permalink
Line*.hh: remove unneeded use of static variable
Browse files Browse the repository at this point in the history
Fixes #269.

Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters committed Jul 14, 2024
1 parent 17585a9 commit 8eda3d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/gz/math/Line2.hh
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ namespace gz
public: bool Intersect(const Line2<T> &_line,
double _epsilon = 1e-6) const
{
static math::Vector2<T> ignore;
math::Vector2<T> ignore;
return this->Intersect(_line, ignore, _epsilon);
}

Expand Down
2 changes: 1 addition & 1 deletion include/gz/math/Line3.hh
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ namespace gz
public: bool Intersect(const Line3<T> &_line,
double _epsilon = 1e-6) const
{
static math::Vector3<T> ignore;
math::Vector3<T> ignore;
return this->Intersect(_line, ignore, _epsilon);
}

Expand Down

0 comments on commit 8eda3d2

Please sign in to comment.