diff options
Diffstat (limited to 'engines/titanic/star_control/dvector.cpp')
-rw-r--r-- | engines/titanic/star_control/dvector.cpp | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/engines/titanic/star_control/dvector.cpp b/engines/titanic/star_control/dvector.cpp index e4c5b15cb0..dc1376537e 100644 --- a/engines/titanic/star_control/dvector.cpp +++ b/engines/titanic/star_control/dvector.cpp @@ -25,7 +25,7 @@ namespace Titanic { -void DVector::fn3() { +void DVector::normalize() { double hyp = sqrt(_x * _x + _y * _y + _z * _z); assert(hyp); @@ -34,4 +34,29 @@ void DVector::fn3() { _z *= 1.0 / hyp; } +double DVector::getDistance(const DVector &src) { + return sqrt((src._x - _x) * (src._x - _x) + (src._y - _y) * (src._y - _y) + (src._z - _z) * (src._z - _z)); +} + +void DVector::fn1(DVector &dest, const DMatrix &m) { + // TODO +} + +void DVector::fn2(double val) { + // TODO +} + +void DVector::fn3(DVector &dest) { + // TODO +} + +const DMatrix *DVector::fn4(const DVector &v, DMatrix &m) { + // TODO + return nullptr; +} + +void DVector::fn5(DMatrix &dest) { + // TODO +} + } // End of namespace Titanic |