]> git.tdb.fi Git - libs/math.git/blobdiff - source/linal/vector3.h
Another big batch of stuff
[libs/math.git] / source / linal / vector3.h
index 90a5ff5fc468a77ea439b7b5d3e52667ac75ef98..0197dbc9775bef46f87923f41e70756058926b43 100644 (file)
@@ -40,18 +40,18 @@ inline Vector3<T>::Vector3(const Vector<U, 3> &v):
 { }
 
 template<typename T>
-inline T dot(const Vector3<T> &v1, const Vector3<T> &v2)
+inline T dot(const Vector<T, 3> &v1, const Vector<T, 3> &v2)
 {
        return inner_product(v1, v2);
 }
 
 template<typename T>
-inline Vector3<T> cross(const Vector3<T> &v1, const Vector3<T> &v2)
+inline Vector<T, 3> cross(const Vector<T, 3> &v1, const Vector<T, 3> &v2)
 {
-       return Vector3<T>(v1[1]*v2[2]-v1[2]*v2[1], v1[2]*v2[0]-v1[0]*v2[2], v1[0]*v2[1]-v1[1]*v2[0]);
+       return Vector<T, 3>(v1[1]*v2[2]-v1[2]*v2[1], v1[2]*v2[0]-v1[0]*v2[2], v1[0]*v2[1]-v1[1]*v2[0]);
 }
 
 } // namespace LinAl
-} // namespace LinAl
+} // namespace Msp
 
 #endif