diff options
author | David Fioramonti | 2017-08-21 15:35:34 -0700 |
---|---|---|
committer | David Fioramonti | 2017-08-21 15:42:50 -0700 |
commit | 04598dd5adbafcc6821dfc9f2927457fc20a3c7c (patch) | |
tree | c720d578deaeb4238a9aa1f754623d1deb3b660a /engines/titanic/star_control/fvector.h | |
parent | 2a96a6fc7288a33a3726191338308af3581c9883 (diff) | |
download | scummvm-rg350-04598dd5adbafcc6821dfc9f2927457fc20a3c7c.tar.gz scummvm-rg350-04598dd5adbafcc6821dfc9f2927457fc20a3c7c.tar.bz2 scummvm-rg350-04598dd5adbafcc6821dfc9f2927457fc20a3c7c.zip |
TITANIC: Named some functions in fvector
Diffstat (limited to 'engines/titanic/star_control/fvector.h')
-rw-r--r-- | engines/titanic/star_control/fvector.h | 13 |
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 |