aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/star_control/fvector.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2017-03-23 21:13:16 -0400
committerPaul Gilbert2017-03-23 21:13:16 -0400
commit5f71b73a3211f5a7f152a2e978380e20598ade98 (patch)
tree7a0da34d4967154b4bdc1337bf95a691a3fe2e32 /engines/titanic/star_control/fvector.cpp
parent9a7cd6b367e08b2926cdbf9f42c4b457897520ea (diff)
downloadscummvm-rg350-5f71b73a3211f5a7f152a2e978380e20598ade98.tar.gz
scummvm-rg350-5f71b73a3211f5a7f152a2e978380e20598ade98.tar.bz2
scummvm-rg350-5f71b73a3211f5a7f152a2e978380e20598ade98.zip
TITANIC: Finished FVector class
Diffstat (limited to 'engines/titanic/star_control/fvector.cpp')
-rw-r--r--engines/titanic/star_control/fvector.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/titanic/star_control/fvector.cpp b/engines/titanic/star_control/fvector.cpp
index 666b22eb3a..da7f37cebc 100644
--- a/engines/titanic/star_control/fvector.cpp
+++ b/engines/titanic/star_control/fvector.cpp
@@ -71,7 +71,11 @@ double FVector::getDistance(const FVector &src) const {
}
FVector FVector::fn5(const CStarControlSub6 *sub6) const {
- error("TODO: FVector::fn5");
+ FVector v;
+ v._x = sub6->_row2._x * _y + sub6->_row3._x * _z + sub6->_row1._x * _x + sub6->_vector._x;
+ v._y = sub6->_row2._y * _y + sub6->_row3._y * _z + sub6->_row1._y * _x + sub6->_vector._y;
+ v._z = sub6->_row3._z * _z + sub6->_row2._z * _y + sub6->_row1._z * _x + sub6->_vector._z;
+ return v;
}
} // End of namespace Titanic