1
0
Fork 0
Commit graph

22 commits

Author SHA1 Message Date
6e8f060882 include/Spectre/Math/Matrix3.h: Adding multiplication and division scalar operations. 2023-08-04 03:48:03 +02:00
43354fc9b4 Spectre/Math: rename all vector length() and normalize() functions to len() and normal() 2023-04-30 23:07:25 +02:00
4a6a20342d Spectre/Math/Time: minor fixes and documentation 2023-04-30 23:02:16 +02:00
6de6028ba4 Adding Spectre/Math/Time 2020-12-16 16:33:32 +01:00
a6e6b915e6
Math/Math: Remove getTranslate(), getUpVector() and getForwardVector() as they are not used. 2020-02-12 19:54:52 +01:00
532c6dafaf
Math/Math: translate/scale functions should not accept vectors, but rather individual parameters.
This is "low level" functions. Used by other math classes/functions.
2020-02-12 19:42:50 +01:00
76d175ffd9
Math/Transform: rename multiply() to combine() 2020-02-12 19:27:41 +01:00
72e1bfdade
Math: indent fixes. 2020-02-12 08:54:03 +01:00
c0f44016c6
Math/Vector2: inline toString() 2020-02-12 08:52:08 +01:00
4df668e68f
Minor formating fixes. 2019-12-29 22:26:05 +01:00
e10daeaaa6
Move everything from global namespace to "sp" namespace
When writing the X11 (linux) implementation there was a problem with X11 defining a "Display" type and we also have a Display class in the engine.

So to fix that problem and minimize the risk for running into other name conflicts. We move everything from global namespace.
2019-09-30 19:10:17 +02:00
9da8addeb2 include/Spectre/Math/Matrix4.inl: gcc complains about multiple definitions of Identity. just template the type instead of only allow float. 2019-06-01 21:06:59 +02:00
ffe75049d0 include/Spectre/Math/Matrix4.inl: gcc need "template<>" for Indentity variable. 2019-06-01 21:06:59 +02:00
77804b8620 include/Spectre/Math/Matrix4.inl: in matrix vector multiplication. for some reason g++ was not happy with calling the constructor. this works. 2019-06-01 21:06:59 +02:00
d1b613058d include/Spectre/Math/Vector2.inl: minor fix. 2019-05-31 16:26:22 +02:00
0c76494939 include/Spectre/Math/Vector2.inl: less than or equal operator should be written as "<=" not "=<" 2019-05-31 15:46:40 +02:00
7bf8617267
include/Spectre/Math/Matrix3.h: minor comment fix. 2019-04-29 08:54:40 +02:00
84d773dc0d
Math/Matrix3: remove Zero static variable (default constructor creates a zero matrix). 2019-04-29 08:54:15 +02:00
4e29b3ea2c
include/Spectre/Math/Matrix4.inl: make sure the default constructor creates a zero matrix. 2019-04-29 08:48:40 +02:00
e57f099a3c include/Spectre/Math/Vector2.inl: fixing stupid error in one of the scalar compare functions (forgot to use the vector object) 2018-02-27 21:18:16 +01:00
72ee3fbfde include/Spectre/Math/Vector2.inl: fixing some scalar functions that did not have the correct function definition. 2018-02-27 21:14:54 +01:00
edfc5298e1 Initial commit 2016-01-10 09:26:43 +01:00