Vladimír Vondruš
da40122233
Containers: suppress literal operator warnings on GCC 15 with -std=c++23.
...
Same thing as with Clang 17+ (see the comment for why), but in this case
the warning seems to be enabled by default, which is rather annoying.
11 months ago
Vladimír Vondruš
0e0713eb47
Math: document that float types use fuzzy compare for equality.
...
An omission from the early days when I thought this is an obvious
feature and doesn't need mentioning.
1 year ago
Vladimír Vondruš
60fd42b505
Here we go again.
1 year ago
Vladimír Vondruš
eef921c238
It's October already?!
2 years ago
Vladimír Vondruš
cce12a27fb
Ignore Clang's -Wdeprecated-literal-operator until we can drop GCC 4.8.
...
And also remove the other space, to be consistent with Doxygen links,
what Corrade uses, and have the literals easier to search for.
2 years ago
Vladimír Vondruš
2619dc33f1
doc: drop the redundant Magnum prefix from snippet files.
...
I accidentally did that at first, and then "for consistency" continued
with that for a decade.
2 years ago
Vladimír Vondruš
a4efe99ccf
Math: move literals to inline Literals::FooLiterals subnamespaces.
...
To allow people to cherry-pick just a subset of them if other code
defines literals that may conflict. I first did that the same way as
STL (so both namespaces inline), only to subsequently discover the
horror that all literals are implicitly available in the enclosing
Math namespace, thus preventing no conflicts at all. So the Literals
namespace isn't getting inline, only the inner ones.
This is also in preparation for introduction of
Literals::ConstexprColorLiterals that would provide a constexpr variant
of the _srgbf literals at the expense of having a large LUT in a header
file.
2 years ago
Vladimír Vondruš
4825ed0608
Math: stop wasting time with the explicit Corrade:: prefix.
...
I did this back in 2010 because it "felt like the right thing to do",
given that all of Magnum depended on Math and not vice versa. But,
strictly speaking, Math already uses typedefs from Magnum/Types.h so why
it couldn't also bring in the Corrade namespace, and the
Debug/Warning/Error names too. Having to type out Corrade:: in all these
was really just a waste of time, weird inconsistency in docs and an
extra roadblock for whoever might want to contribute anything there.
3 years ago
Vladimír Vondruš
eed2c818e9
Use a common prefix for internal singles-related macros.
...
Matches the same change in Corrade.
3 years ago
Vladimír Vondruš
fa079385bf
singles: don't include StrictWeakOrdering in MagnumMath.hpp.
3 years ago
Vladimír Vondruš
bbb54a9df8
It's 2023 already!
3 years ago
Vladimír Vondruš
826329258a
Math: adapt to changes in Corrade's TweakableParser also for Angle.
...
Forgot to do this in 4ef33236eb .
3 years ago
Vladimír Vondruš
822fa0d644
Updated copyright year.
4 years ago
Vladimír Vondruš
d939221f7f
doc: refresh various math docs a bit.
4 years ago
Vladimír Vondruš
3d136503d8
Updated copyright year.
5 years ago
Vladimír Vondruš
83d6509595
Math: adapt to changes to Tweakable internals.
6 years ago
Vladimír Vondruš
e6a8c99d89
Math: don't include Utility fwdecls when not needed.
6 years ago
Vladimír Vondruš
a5722f175a
Doc++
6 years ago
Vladimír Vondruš
1026aee80e
Moved the NoInit tag from Math to the root namespace.
...
The old one is deprecated, and will be removed in a future release.
Unfortunately, to avoid deprecation warnings, all use of NoInit in the
Math library temporarily have to be Magnum::NoInit This will be cleaned
up when the deprecated alias is removed.
6 years ago
Vladimír Vondruš
19e0e96d74
Updated copyright year.
6 years ago
Vladimír Vondruš
50e21015eb
Math: make it possible to construct Half from a double.
...
A lot of generic code uses T(1.0) and right now that caused an ambiguity
between the Float and UnsignedShort constructors.
6 years ago
Vladimír Vondruš
88fabb1ef6
Math: reduce header dependencies a bit.
6 years ago
Vladimír Vondruš
36ba5f4333
Math: ensure ZeroInit and IdentityInit constructors are explicit.
...
Like NoInit ones. Not sure what I was doing there.
7 years ago
Vladimír Vondruš
77a8c0c99b
Math: make it possible to opt-out of Tweakable parsers.
...
Again, for magnum-singles export.
7 years ago
Vladimír Vondruš
cee530733e
Math: make it possible to opt out of Debug output operators.
...
Undocumented at this point, will be used for magnum-singles export.
7 years ago
Vladimír Vondruš
e6b7aa12fa
Updated copyright year.
7 years ago
Vladimír Vondruš
f5e30bb5d3
Math: minor coding style cleanup.
8 years ago
Borislav Stanimirov
f7f2ab8cb5
Math: added StrictWeakOrdering for math types
8 years ago
Vladimír Vondruš
8be57d1a21
Math: I should have tested this.
...
Did I ever check the CIs?
8 years ago
Vladimír Vondruš
d7d8e49de2
Math: make all literals usable with Utility::Tweakable.
8 years ago
Vladimír Vondruš
a77a46c926
Math: debug output for Half with proper amount of decimal places.
...
The totally random places after were not exactly useful. This file was
sitting here for a while, not sure why I didn't commit that earlier.
8 years ago
Vladimír Vondruš
673caa23bf
Math: compiling Angle, Color and Half code snippets.
8 years ago
Vladimír Vondruš
105cef5efd
No need to use fully qualified name for \debugoperator.
8 years ago
Vladimír Vondruš
623fa97970
Updated copyright year.
8 years ago
Vladimír Vondruš
05bb8b419a
Math: updates for the new documentation theme.
8 years ago
Vladimír Vondruš
7a16273e5d
Updated copyright year.
9 years ago
Vladimír Vondruš
bdb6daec82
Math: new Half literal class.
9 years ago