]> git.tdb.fi Git - libs/math.git/blobdiff - source/linal/vector3.h
Move some simple function definitions inside the class declarations
[libs/math.git] / source / linal / vector3.h
index 0197dbc9775bef46f87923f41e70756058926b43..4a623cafef1443cd194c38efd30351c0ac055c40 100644 (file)
@@ -14,17 +14,12 @@ class Vector3: public Vector<T, 3>
 {
 public:
        Vector3() { }
-       Vector3(const T *);
+       Vector3(const T *d): Vector<T, 3>(d) { }
        Vector3(T, T, T);
        template<typename U>
-       Vector3(const Vector<U, 3> &);
+       Vector3(const Vector<U, 3> &v): Vector<T, 3>(v) { }
 };
 
-template<typename T>
-inline Vector3<T>::Vector3(const T *d):
-       Vector<T, 3>(d)
-{ }
-
 template<typename T>
 inline Vector3<T>::Vector3(T x, T y, T z)
 {
@@ -33,12 +28,6 @@ inline Vector3<T>::Vector3(T x, T y, T z)
        this->data[2] = z;
 }
 
-template<typename T>
-template<typename U>
-inline Vector3<T>::Vector3(const Vector<U, 3> &v):
-       Vector<T, 3>(v)
-{ }
-
 template<typename T>
 inline T dot(const Vector<T, 3> &v1, const Vector<T, 3> &v2)
 {