22 Commits

Author SHA1 Message Date
Einar Johan Trøan Sømåen
fcb8eda978 MATH: Add some constexpr to the Matrix base-classes.
Currently we can't quite make Matrix3's default constructor constexpr,
as the setToIdentity-call requires C++14.
2023-04-29 13:10:23 +02:00
Le Philousophe
511852e431 MATH: Use reference instead of value
Else we can't return a reference to the object as it's a local copy
2022-09-18 16:15:56 +02:00
Paweł Kołodziejski
20cb0ae228
ALL: Cleanup ResidualVM -> ScummVM 2021-12-26 21:19:38 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Michael Ball
0e9c4ca720 Update matrix.h
Removed extraneous character that, when the "math" directory is included, causes the doxygen build to fail.
2021-06-04 10:45:05 +03:00
Paweł Kołodziejski
3d84e3eb75
MATH: Extend matrix operators. Added getXYZ() for vector4. 2021-03-29 00:04:46 +02:00
Orgad Shaneh
ef4cc34347 MATH: Fix Clang warnings on Matrix
../scummvm\math/matrix.h:146:2: warning: definition of implicit copy assignment operator for 'MatrixBase<4, 4>' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy]
        MatrixBase(const MatrixBase<rows, cols> &m);
        ^
../scummvm\math/squarematrix.h:37:7: note: in implicit copy assignment operator for 'Math::MatrixBase<4, 4>' first required here
class MatrixType<dim, dim> : public MatrixBase<dim, dim> {
      ^
../scummvm\math/matrix4.h:36:7: note: in implicit copy assignment operator for 'Math::MatrixType<4, 4>' first required here
class Matrix<4, 4> : public MatrixType<4, 4>, public Rotation3D<Matrix<4, 4> > {
      ^
../scummvm\engines/grim/costume/mesh_component.h:45:65: note: in implicit copy assignment operator for 'Math::Matrix<4, 4>' first required here
        void setMatrix(const Math::Matrix4 &matrix) override { _matrix = matrix; };
                                                                       ^
2021-03-15 14:10:31 +02:00
Paweł Kołodziejski
e2cd2e6ed7 COMMON: Rename Common::Debug to Common::StreamDebug 2020-10-16 21:47:16 +02:00
Christian Krause
cc9734643b MATH: Add/fix matrix operators
- fix == operator
- add != operator
2014-12-31 17:07:19 +01:00
Pawel Kolodziejski
8759900b6a ALL: synced with ScummVM 2014-04-05 18:18:42 +02:00
Giulio Camuffo
2936a82fbf MATH: Move the debug '<<' operators to the Math namespace. 2013-01-09 18:41:50 +01:00
Paweł Kołodziejski
175620b62a ALL: change license headers from LGPL to GPL, and few updates 2012-12-19 23:15:43 +01:00
Pawel Kolodziejski
626e91f23a rename -> ResidualVM 2012-01-06 23:15:48 +01:00
Giulio Camuffo
062cf9292f MATH: Use a one-dimensional array for the matrix data. Should fix #414 2011-11-20 15:17:41 +01:00
Einar Johan T. Sømåen
f56a340193 MATH: Fix Matrix-compile on clang 2011-11-11 00:18:25 +01:00
Giulio Camuffo
1e86d51b1e MATH: Minor Matrix optimisations. 2011-11-04 15:25:22 +01:00
Giulio Camuffo
7745dcb8a1 MATH: Fix conversion from MatrixBase to Matrix. 2011-09-29 15:31:27 +02:00
Giulio Camuffo
cd6832aad7 MATH: Fix crash with mac osx. Fix #363 2011-09-22 21:39:29 +02:00
Giulio Camuffo
f480f8ecc8 MATH: Minor fixes. 2011-09-18 17:10:36 +02:00
Giulio Camuffo
3fecc996c8 MATH: Renamed the static operators functions. 2011-09-17 18:57:12 +02:00
Giulio Camuffo
a900a5ab10 MATH: Further work on the Matrix class.
The vectors are now matrices.
2011-09-14 23:06:14 +02:00
Giulio Camuffo
0083c8619c MATH: Move the math classes to their own math/ dir and Math namespace. 2011-09-14 23:05:52 +02:00