Vladimír Vondruš
5ef38ea233
Math: reorder Color4 overloads to have the same names together.
...
No functional change.
3 years ago
Vladimír Vondruš
897d1002c3
Math: rename Color[34]::fromSrgb*(UnsignedInt) to fromSrgb*Int().
...
For consistency with toSrgb*Int(), and to avoid confusion or accidental
uses with a wrong type.
3 years ago
Vladimír Vondruš
4ef33236eb
Adapt to changes in Corrade's Utility::TweakableParser.
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š
60d13f0fcb
Math: these sentences don't sound like they make any sense, no.
5 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š
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š
d3f2235759
Adapted to Corrade changes.
6 years ago
Vladimír Vondruš
d2513cac3c
Math: make Color default alpha values work with Half.
...
There's some fugliness needed for the MSVC 2017 crash workaround but
otherwise all good.
6 years ago
Vladimír Vondruš
3734568cdf
Math: switch to our type traits in Color internals.
...
In preparation for having the Half type usable in Color.
6 years ago
Vladimír Vondruš
73c37a8339
Add Vector[324][u][hsb] convenience typedefs for small types.
...
And also Color variants, to make it complete. No half types for matrices
right now, those might come later.
6 years ago
Vladimír Vondruš
4490dfd68f
Math: use a degree symbol for hue ranges.
6 years ago
Vladimír Vondruš
bc99e6fa57
Math: improve docs for color (un)packing and sRGB conversion.
6 years ago
Vladimír Vondruš
a920722839
doc: label deprecated APIs and stuff new since 2019.10 with version info.
...
Should make new things more discoverable, avoid confusion when a
documented API isn't there and reduce the need for maintaining multiple
separate versions of the docs.
7 years ago
Vladimír Vondruš
0408671e8f
Math: silence an annoying warning from MSVC about 64-to-32bit conversion.
7 years ago
Vladimír Vondruš
4b6fabb004
Math: ability to Debug colors as actual colored squares.
7 years ago
Vladimír Vondruš
3fb90cdf5c
Math: remove obsolete Doxygen workarounds.
7 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š
547a3f3cea
Math: use a dedicated type for HSV colors instead of a tuple.
...
Pros:
* faster compile times (#include <tuple> is 13k lines, ugh)
* ability to have NoInit and ZeroInit constructors
* ability to do fuzzy compare
* named members, so we don't have to use mutable std::tie()
Cons:
* ... none?
The old Color[34]::Hsv is still a tuple and the new ColorHsv is
convertible to/from it (and even std::tie() works). These are all
deprecated (along with the <tuple> include).
7 years ago
Vladimír Vondruš
cc1d878cff
Math: put types before static functions.
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š
64bc7f9c8e
Math: moved configuration value parsers to a dedicated header.
...
There's a lot of string operations and that's nothing good to have
included everywhere. Should speed up the compilation quite a bit.
7 years ago
Vladimír Vondruš
e6b7aa12fa
Updated copyright year.
7 years ago
Vladimír Vondruš
7b1aa6f497
Math: removed deprecated uppercase *HSV APIs from Color.
...
Deprecated since c27a12bb30 (December
2016). Use the CamelCased *Hsv APIs instead.
8 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š
4a9e63ebdd
Math: doc++
...
I re-posted the tweet in a failed attempt to gain more attention. Yes, I
know I should post that on Connect, but that didn't really made the bug
fixed last time anyway.
8 years ago
Vladimír Vondruš
6725f6ed2f
Math: doc++
8 years ago
Vladimír Vondruš
b44166b238
Math: work around a MSVC 2017 15.8 ICE.
...
Four hours of my life, gone. Minimal repro case here:
https://twitter.com/czmosra/status/1038610648568147968
8 years ago
Vladimír Vondruš
d88e79cd9e
Math: new Color[34]::fromSrgb[Alpha]() and Color[34]::toSrgb[Alpha]Int().
...
For easier conversion of packed 24-/32-bit colors to the Color types.
8 years ago
Vladimír Vondruš
b79c245a63
Doc++, allow to search literals without the nonobvious operator"" prefix.
8 years ago
Vladimír Vondruš
673caa23bf
Math: compiling Angle, Color and Half code snippets.
8 years ago
Vladimír Vondruš
8094144698
Math: fix pointless MSVC warnings.
8 years ago
Vladimír Vondruš
105cef5efd
No need to use fully qualified name for \debugoperator.
8 years ago
Vladimír Vondruš
2136466f0f
Math: doc++, add search aliases for GLSL functions.
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š
ae9095de16
Remove most of the "MSVC 2015 can't handle {} here" workarounds.
9 years ago
Vladimír Vondruš
0aad8f756e
Math: utility function for conversion between CIE xyY and CIE XYZ.
9 years ago
Vladimír Vondruš
8637cbdc31
Math: Color4::{xyz,rgb}() should return Color3, not Vector3.
9 years ago
Vladimír Vondruš
bb69a88922
Math: fix double->float conversion warnings on MSVC.
9 years ago
Vladimír Vondruš
1f2af862dc
Doc++
9 years ago
Vladimír Vondruš
502d59c2a8
Math: ability to specify number of integer bits for {un,}pack().
...
This also allowed me to get rid of the <limits> header.
9 years ago