From c0f44016c692df733a60c7f5d7ef3210336a1f44 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 12 Feb 2020 08:52:08 +0100 Subject: [PATCH] Math/Vector2: inline toString() --- include/Spectre/Math/Vector2.h | 2 +- include/Spectre/Math/Vector2.inl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/Spectre/Math/Vector2.h b/include/Spectre/Math/Vector2.h index e259c96..a1849cf 100644 --- a/include/Spectre/Math/Vector2.h +++ b/include/Spectre/Math/Vector2.h @@ -39,7 +39,7 @@ struct Vector2 inline Vector2& reflect(const Vector2& n); - std::string toString() const; + inline std::string toString() const; }; // ------------ diff --git a/include/Spectre/Math/Vector2.inl b/include/Spectre/Math/Vector2.inl index 819695a..241a405 100644 --- a/include/Spectre/Math/Vector2.inl +++ b/include/Spectre/Math/Vector2.inl @@ -58,7 +58,7 @@ inline Vector2& Vector2::reflect(const Vector2& n) } template -std::string Vector2::toString() const +inline std::string Vector2::toString() const { return core::to_string(x) + ", " + core::to_string(y); }