aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/star_control/fvector.h
diff options
context:
space:
mode:
authorPaul Gilbert2017-08-22 19:20:25 -0400
committerGitHub2017-08-22 19:20:25 -0400
commit68d43a431a56045cd69c6f07705269c4938ea589 (patch)
tree6453f52f29b347d3efa1cf2dfaa776975c316036 /engines/titanic/star_control/fvector.h
parent54accdffae0e0d5e9c8ef33eed534bad1089fc42 (diff)
parentc06055e1a4433792ed517d8ae3034e113424b85a (diff)
downloadscummvm-rg350-68d43a431a56045cd69c6f07705269c4938ea589.tar.gz
scummvm-rg350-68d43a431a56045cd69c6f07705269c4938ea589.tar.bz2
scummvm-rg350-68d43a431a56045cd69c6f07705269c4938ea589.zip
Merge pull request #997 from dafioram/star_fix10148
TITANIC: Change ship view and position even if not moved
Diffstat (limited to 'engines/titanic/star_control/fvector.h')
-rw-r--r--engines/titanic/star_control/fvector.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/engines/titanic/star_control/fvector.h b/engines/titanic/star_control/fvector.h
index f93ac60c26..ed5789ac7e 100644
--- a/engines/titanic/star_control/fvector.h
+++ b/engines/titanic/star_control/fvector.h
@@ -51,7 +51,12 @@ public:
_x = _y = _z = 0.0;
}
- FVector fn1() const;
+ /**
+ * Returns a vector with all components of this vector circularlly rotated up 1.
+ * this x being _y, this y being _z, and this z being _x. A sign change may also
+ * be done on x/_y based on some conditions.
+ */
+ FVector swapComponents() const;
/**
* Calculates the cross-product between this matrix and a passed one
@@ -80,7 +85,11 @@ public:
*/
float getDistance(const FVector &src) const;
- FVector fn5(const FPose &pose) const;
+ /**
+ * Returns a vector that is this vector on the left as a row vector
+ * times the 3x4 affine matrix on the right.
+ */
+ FVector MatProdRowVect(const FPose &pose) const;
/**
* Returns true if the passed vector equals this one