aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/star_control/dvector.cpp
AgeCommit message (Collapse)Author
2017-09-02TITANIC: Remove DVector and DAffine files from build and folderDavid Fioramonti
2017-08-30TITANIC: Renamed a dvector funcDavid Fioramonti
More correct function naming then before.
2017-08-24TITANIC: Reduce header includes for star_control filesDavid Fioramonti
Minimized a lot of the unncessary files includes in the implementation files as well.
2017-08-22TITANIC: Formatting fixes for star control classesPaul Gilbert
2017-08-19TITANIC: Pull assert out of dvector/fvector normalizationDavid Fioramonti
Before the normalization function was asserting if it couldn't normalize now the caller can determine what to do with a failed normalization.
2017-08-15TITANIC: daffine refactor, changed Yaxis rotation conventionDavid Fioramonti
The X and Z rotation already follow the convention given in wikipedia, but the Y axis rotation doesn't (its the negative angle) so I switched that and updated where that was used. This allowed stray negatives for angle calls to this function (for Y rotations) to be removed from other parts of the code (dvector). In theory this was a non-functional change. In dvector the code was taking the negative of the angle so it was essentially doing the negative of the negative, but when it was used once in star_camera it was not (when it should of been). So That was changed. That part of the code was used for locking onto the third star after the 2nd was already locked. I can't tell if the star control puzzle has improved after this change. It can still have issues locking onto the 2nd star and also not. Also added lots of todos for things to check.
2017-08-15TITANIC: daffine refactoring, non-functional changesDavid Fioramonti
Made default constructor col4 construction explicit. Change amount argument to be angle_deg. Added constant from dvector that does conversion from degrees to radians". Also moved conversion constants for angles in dvector to header file so daffine could use that.
2017-08-13TITANIC: Further cleanup of DVector classPaul Gilbert
2017-08-12TITANIC: dvector work, fn5 renamed to RotXYDavid Fioramonti
It does a rotation around the X axis then Y.
2017-08-12TITANIC: dvect work, replace fn4 with getFrameTransformDavid Fioramonti
This function was using two vectors one as a frame rotation and the other as a vector/point rotation. This function is only used in when you click on a star in starview.
2017-08-12TITANIC: star control dvector work, replace fn3 with getAnglesAsVect also ↵David Fioramonti
replace atan2 implementation fn3 in dvector returns a vector that stores a magnitude, and 2 angles. The second angle (the z component of the returned vector) was the angle that the internal vector was between its z and x axis. This angle was obtained by doing a poor man 4-quadrant atan implementation and it gave large values for negative x. This has been replaced with the atan2 standard function.
2017-08-12TITANIC: star control dvector rename fn2 to RotVectAxisYDavid Fioramonti
2017-08-12TITANIC: Star control dvector work, renamed fn1 to DAffMatrixProdVecDavid Fioramonti
It does a matrix product with a vector and a z translation
2017-07-12TITANIC: Fix daffine.h includesPaul Gilbert
2017-07-12TITANIC: Rename DMatrix to DAffine, thanks to wjpPaul Gilbert
2017-07-12TITANIC: Change rows to cols in DMatrix, thanks to wjpPaul Gilbert
2017-06-06TITANIC: Fix calculations in DVector fn1Paul Gilbert
2017-06-06TITANIC: Further fixes for locking marker 2Paul Gilbert
2017-06-04TITANIC: Simplify DVector fn1Paul Gilbert
2017-06-03TITANIC: Fix some vector calculations in marker lock-on codePaul Gilbert
2017-06-02TITANIC: Minor cleanups in vector/matrix calculationsPaul Gilbert
2017-06-02TITANIC: Simplify DVector fn4Paul Gilbert
2017-03-26TITANIC: Fix references to fields of DMatrix _row4Paul Gilbert
2017-03-24TITANIC: Finished DMatrix classPaul Gilbert
2017-03-23TITANIC: Finished DVector classPaul Gilbert
2017-03-19TITANIC: Finished CStarControlSub12 setViewportPositionPaul Gilbert
2017-03-11TITANIC: Implementing CStarControlSub21 classPaul Gilbert
2016-07-17TITANIC: Added FMatrix methodsPaul Gilbert
2016-07-17TITANIC: Beginnings of matrix and vector classesPaul Gilbert