diff options
author | chai <chaifix@163.com> | 2020-11-10 18:46:11 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-11-10 18:46:11 +0800 |
commit | 59e6235113a4d933811aa2cf6fdc8282ce394b9d (patch) | |
tree | 12410a230c5339ca88be6842c0dc811d5c6ec0ba /Runtime/Math/Vector2.cpp | |
parent | f0807fc44dde14531759306317611bab87c8fccf (diff) |
*window
Diffstat (limited to 'Runtime/Math/Vector2.cpp')
-rw-r--r-- | Runtime/Math/Vector2.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Runtime/Math/Vector2.cpp b/Runtime/Math/Vector2.cpp index e69de29..e636362 100644 --- a/Runtime/Math/Vector2.cpp +++ b/Runtime/Math/Vector2.cpp @@ -0,0 +1,11 @@ +#include "Vector2.h" + +using namespace std; + +const float Vector2f::epsilon = 0.00001F; +const float Vector2f::infinity = numeric_limits<float>::infinity(); +const Vector2f Vector2f::infinityVec = Vector2f(numeric_limits<float>::infinity(), numeric_limits<float>::infinity()); + +const Vector2f Vector2f::zero = Vector2f(0, 0); +const Vector2f Vector2f::xAxis = Vector2f(1, 0); +const Vector2f Vector2f::yAxis = Vector2f(0, 1); |