Vladimír Vondruš
ca8d429854
Math: doc++
...
Broken by 3cf4573c0e -- forgot to check
that docs build.
5 years ago
Vladimír Vondruš
3cf4573c0e
Math: drop explicitly defaulted copy constructors.
...
These shouldn't be needed (the newer classes such as Half or
CubicHermite don't have them and work fine), moreover Clang 12 is now
emitting the following warning for them:
Definition of implicit copy assignment operator for 'Foo' is
deprecated because it has a user-declared copy constructor
[-Wdeprecated-copy]
5 years ago
Vladimír Vondruš
31b2bfb980
Add typedefs for unsigned ranges.
...
Later, if it proves to be useful for e.g. the SceneData, it might make
sense to add 8- and 16-bit variants also.
5 years ago
Vladimír Vondruš
abda09298a
Math: haha std::pair you silly stupid thing.
5 years ago
Vladimír Vondruš
7d82352a13
Math: add an ability to construct a Range1D from Math::Vector<1, T>.
...
A Vector<1, T> is implicitly constructible from T but not vice versa (to
avoid nasty collisions with builtin operators on scalars) so this is
needed.
5 years ago
Vladimír Vondruš
120286a930
Add Degh, Radh and Range*Dh typedefs.
...
We have half-float vectors and matrices, so why not these as well. Not
sure for what all is the angle precision usable, but at the very least
it could be useful for compact meshlet occlusion cone / AABB
representation or rough animations.
5 years ago
Vladimír Vondruš
c0e8d4c00b
Math: make Range searchable under AABB.
5 years ago
Vladimír Vondruš
3d136503d8
Updated copyright year.
5 years ago
Vladimír Vondruš
5222cf3478
doc: change all "latest" additions/deprecations to 2020.06.
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š
5be7fbe1e8
Math: make Range2D and Range3D properly convertible from std::pair.
...
Not sure what was I doing in 64f8a90095 .
6 years ago
Vladimír Vondruš
6fbedd8f52
Revert "doc: pile on more Doxygen workarounds."
...
This reverts commit 0b7831c1ad .
6 years ago
Vladimír Vondruš
0b7831c1ad
doc: pile on more Doxygen workarounds.
...
Sad! https://github.com/doxygen/doxygen/issues/7472
6 years ago
Vladimír Vondruš
376757bc6c
Doc++
6 years ago
Vladimír Vondruš
1b37d22006
Doc++
7 years ago
Vladimír Vondruš
bd1ce7d316
Math: return proper type from Range3D::xy().
7 years ago
Vladimír Vondruš
0de0104abe
Math: return proper type from Range*D::scaledFromCenter().
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š
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š
e7af6bf07b
Math: minor cleanup and code shuffling.
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š
5fc246b908
Math: compile forgotten code snippets.
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š
0226ab26c4
Math: make one-dimensional range just from scalar types.
...
Since Range1D is now used all over Animation, the vector made it very
annoying to use. That's fixed now. This is a backwards-incompatible
change, but I don't expect the 1D range to be used much, mainly because
it was so shitty to use. Generic code that needs a vector can always
cast to it, like this:
Math::Vector<dimensions, T>{range.min()}
Test for the constructor from pair is no longer accepting pairs of 1D
vectors. I have no idea what I meant by that test case (it's testing the
same thing twice), so I removed one of these.
8 years ago
Vladimír Vondruš
d6017ad8cc
Math: fixed enable_if for one-dimensional Range-from-pair constructor.
...
This shouldn't have worked like this. Apparently it works even after
this. Huh.
8 years ago
Vladimír Vondruš
24af174f5e
Math: minor cleanup.
8 years ago
Vladimír Vondruš
2fd8bae26d
Math: added Range::scaledFromCenter().
8 years ago
Vladimír Vondruš
0f33107efc
Math: no need to de-inline such tiny functions.
8 years ago
Vladimír Vondruš
eabe118266
Math: doc++
8 years ago
Alan
3bbb4088a8
Update Range.h
8 years ago
Vladimír Vondruš
bff7ae8d7e
Math: added Range::fromCenter().
8 years ago
Vladimír Vondruš
bb8fbcef9c
Math: doc++
8 years ago
Vladimír Vondruš
64f8a90095
Math: ability to construct a Range from std::pair.
...
Useful to feed the output from Math::minmax() directly to a Range.
8 years ago
Vladimír Vondruš
8a35299636
Math: added Math::Range::contains() with Range as a parameter.
8 years ago
Vladimír Vondruš
6cb57534e6
Math: implemented intersect() and intersects() for Range.
...
One returns the intersection range, the other a boolean.
8 years ago
Vladimír Vondruš
59852ace85
Math: ability to slice Range into lower dimensions.
8 years ago
Vladimír Vondruš
c26075427b
Doxygen. Doxygen IS BROKEN BEYOND REPAIR.
...
I introduced *strong* enum with values, in a subnamespace, that have the
same name as completely unrelated typedefs. Guess what?! It breaks ALL
LINKS TO THOSE TYPEDEFS! **EVERYWHERE!!!**
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š
b16755fc13
Doxygen fixes and workarounds.
9 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š
620b571766
Math: fix template declaration for Range converter.
10 years ago
Vladimír Vondruš
cfc622c92c
Math: explicitly instantiate commonly used Range debug operators.
...
Might save some executable bloat. Not sure why this wasn't done already.
10 years ago