diff options
author | Paul Gilbert | 2017-03-12 09:51:23 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-03-12 09:51:23 -0400 |
commit | 7887189b5aa806a38c06253f535b7eb78e250f53 (patch) | |
tree | 597c712a8073eac9268506ea452fecc0c1ebf423 /engines/titanic/star_control/fvector.cpp | |
parent | cfdecfe10cd9f04237ba8998be44ac45261113f5 (diff) | |
download | scummvm-rg350-7887189b5aa806a38c06253f535b7eb78e250f53.tar.gz scummvm-rg350-7887189b5aa806a38c06253f535b7eb78e250f53.tar.bz2 scummvm-rg350-7887189b5aa806a38c06253f535b7eb78e250f53.zip |
TITANIC: Finished CStarControlSub23 class
Diffstat (limited to 'engines/titanic/star_control/fvector.cpp')
-rw-r--r-- | engines/titanic/star_control/fvector.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/titanic/star_control/fvector.cpp b/engines/titanic/star_control/fvector.cpp index aa99e8b4d1..de33bcf2a0 100644 --- a/engines/titanic/star_control/fvector.cpp +++ b/engines/titanic/star_control/fvector.cpp @@ -40,13 +40,14 @@ void FVector::multiply(FVector *dest, const FVector *src) { dest->_z = (src->_y * _x) - (_y * src->_x); } -void FVector::fn3() { +double FVector::fn3() { double hyp = sqrt(_x * _x + _y * _y + _z * _z); assert(hyp); _x *= 1.0 / hyp; _y *= 1.0 / hyp; _z *= 1.0 / hyp; + return hyp; } double FVector::getDistance(const FVector *src) const { |