From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/Math/Vector2.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Runtime/Math/Vector2.cpp (limited to 'Runtime/Math/Vector2.cpp') diff --git a/Runtime/Math/Vector2.cpp b/Runtime/Math/Vector2.cpp new file mode 100644 index 0000000..3c73465 --- /dev/null +++ b/Runtime/Math/Vector2.cpp @@ -0,0 +1,13 @@ +#include "UnityPrefix.h" +#include "Vector2.h" +#include + +using namespace std; + +const float Vector2f::epsilon = 0.00001F; +const float Vector2f::infinity = numeric_limits::infinity (); +const Vector2f Vector2f::infinityVec = Vector2f (numeric_limits::infinity (), numeric_limits::infinity ()); + +const Vector2f Vector2f::zero = Vector2f (0, 0); +const Vector2f Vector2f::xAxis = Vector2f (1, 0); +const Vector2f Vector2f::yAxis = Vector2f (0, 1); -- cgit v1.1-26-g67d0