diff --git a/vector.cpp b/vector.cpp index b5d1fb33..9c6f1dc6 100644 --- a/vector.cpp +++ b/vector.cpp @@ -49,6 +49,7 @@ util::vector::operator* (T rhs) const { } +//----------------------------------------------------------------------------- template util::vector& util::vector::operator*= (T rhs) { @@ -59,6 +60,7 @@ util::vector::operator*= (T rhs) { } +//----------------------------------------------------------------------------- template util::vector util::vector::operator* (const vector &rhs) const { @@ -71,6 +73,7 @@ util::vector::operator* (const vector &rhs) const { } +//----------------------------------------------------------------------------- template util::vector& util::vector::operator*= (const vector &rhs) { @@ -93,6 +96,7 @@ util::vector::operator/ (T rhs) const { } +//----------------------------------------------------------------------------- template util::vector& util::vector::operator/= (T rhs) { @@ -114,6 +118,7 @@ util::vector::operator+ (const util::vector &rhs) const { } +//----------------------------------------------------------------------------- template util::vector util::vector::operator+ (T rhs) const { @@ -125,6 +130,7 @@ util::vector::operator+ (T rhs) const { } +//----------------------------------------------------------------------------- template util::vector& util::vector::operator+= (const util::vector &rhs) { @@ -135,6 +141,7 @@ util::vector::operator+= (const util::vector &rhs) { } +//----------------------------------------------------------------------------- template util::vector& util::vector::operator+= (T rhs) { @@ -156,6 +163,7 @@ util::vector::operator- (void) const { } +//----------------------------------------------------------------------------- template util::vector util::vector::operator- (const util::vector &rhs) const { @@ -167,6 +175,7 @@ util::vector::operator- (const util::vector &rhs) const { } +//----------------------------------------------------------------------------- template util::vector& util::vector::operator-= (const util::vector &rhs) { @@ -177,6 +186,7 @@ util::vector::operator-= (const util::vector &rhs) { } +//----------------------------------------------------------------------------- template util::vector util::vector::operator- (T rhs) const { @@ -188,6 +198,7 @@ util::vector::operator- (T rhs) const { } +//----------------------------------------------------------------------------- template util::vector& util::vector::operator-= (T rhs) { @@ -208,6 +219,7 @@ util::vector::operator= (const util::vector &rhs) { } +/////////////////////////////////////////////////////////////////////////////// template bool util::vector::operator== (const util::vector &rhs) const { @@ -271,6 +283,7 @@ util::vector::normalise (void) { } +//----------------------------------------------------------------------------- template util::vector util::vector::normalised (void) const { @@ -304,6 +317,7 @@ util::vector::dot (const util::vector &rhs) const { } +//----------------------------------------------------------------------------- template util::vector<3,T> util::cross (const util::vector<3,T> &a, @@ -332,6 +346,7 @@ util::spherical_to_cartesian (const util::vector<3,T> &s) { } +//----------------------------------------------------------------------------- template util::vector<3,T> util::cartesian_to_spherical (const util::vector<3,T> &c) {