aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/star_control/fvector.cpp
diff options
context:
space:
mode:
authorDavid Fioramonti2017-09-02 06:19:21 -0700
committerDavid Fioramonti2017-09-02 06:41:07 -0700
commit0d5d031564222a643555215ee1257cc6ba3f3c62 (patch)
tree5a90c27ca314862e414a4a950ae77d73aa1ec425 /engines/titanic/star_control/fvector.cpp
parentd6ca9eda93fd6b1808e24fb647f0cc0f3d50f2e5 (diff)
downloadscummvm-rg350-0d5d031564222a643555215ee1257cc6ba3f3c62.tar.gz
scummvm-rg350-0d5d031564222a643555215ee1257cc6ba3f3c62.tar.bz2
scummvm-rg350-0d5d031564222a643555215ee1257cc6ba3f3c62.zip
TITANIC: Added/Removed comments for new functions in FVector and FPose
Diffstat (limited to 'engines/titanic/star_control/fvector.cpp')
-rw-r--r--engines/titanic/star_control/fvector.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/engines/titanic/star_control/fvector.cpp b/engines/titanic/star_control/fvector.cpp
index a6c8b2c42b..4fd17bf883 100644
--- a/engines/titanic/star_control/fvector.cpp
+++ b/engines/titanic/star_control/fvector.cpp
@@ -22,14 +22,10 @@
#include "titanic/star_control/fvector.h"
#include "titanic/star_control/fpose.h"
-//#include "common/algorithm.h"
//#include "common/textconsole.h"
namespace Titanic {
-//FVector::FVector(const DVector &src) : _x(src._x), _y(src._y), _z(src._z) {
-//}
-
FVector FVector::swapComponents() const {
return FVector(
(ABS(_x - _y) < 0.00001 && ABS(_y - _z) < 0.00001 &&
@@ -107,14 +103,6 @@ float FVector::getDistance(const FVector &src) const {
return sqrt(xd * xd + yd * yd + zd * zd);
}
-/*FVector FVector::MatProdColVect(const DAffine &pose) const {
- FVector v;
- v._x = pose._col1._x * _x + pose._col2._x * _y + pose._col3._x * _z + pose._col4._x;
- v._y = pose._col1._y * _x + pose._col2._y * _y + pose._col3._y * _z + pose._col4._y;
- v._z = pose._col1._z * _x + pose._col2._z * _y + pose._col3._z * _z + pose._col4._z;
- return v;
-}*/
-
FVector FVector::MatProdRowVect(const FPose &pose) const {
FVector v;
v._x = pose._row2._x * _y + pose._row3._x * _z + pose._row1._x * _x + pose._vector._x;