diff options
author | Stijn Buys <ingar@osirion.org> | 2009-08-16 17:34:00 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-08-16 17:34:00 +0000 |
commit | d763e294f44eb38b94bf7e2055b77a982b72b7c0 (patch) | |
tree | 37f91c6b7fee58fcecfbfc54dda3f71eb8617b9f /src/math/vector2f.cc | |
parent | 95cc140404c6524ea16e193e1421e826b239114f (diff) |
more constness
Diffstat (limited to 'src/math/vector2f.cc')
-rw-r--r-- | src/math/vector2f.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/math/vector2f.cc b/src/math/vector2f.cc index 2b5ff9e..65f1f93 100644 --- a/src/math/vector2f.cc +++ b/src/math/vector2f.cc @@ -12,17 +12,17 @@ namespace math { -Vector2f::Vector2f() : x(coord[0]), y(coord[1]) +Vector2f::Vector2f() { clear(); } -Vector2f::Vector2f(const Vector2f &other) : x(coord[0]), y(coord[1]) +Vector2f::Vector2f(const Vector2f &other) { assign(other); } -Vector2f::Vector2f(const float x, const float y) : x(coord[0]), y(coord[1]) +Vector2f::Vector2f(const float x, const float y) { assign(x, y); } |