Vladimír Vondruš
3d136503d8
Updated copyright year.
5 years ago
Vladimír Vondruš
5a1f43f20b
Switch to the new & optimized GenerateSequence from Corrade.
...
This should help slightly with compiler memory usage, on GCC 10 the huge
Trade::MaterialData test used "only" 309 instead of 318 MB after this
change.
5 years ago
Vladimír Vondruš
2fb56fe507
Math: accidentally used a float literal, causing warnings with Matrix3d.
6 years ago
Vladimír Vondruš
34a52e48ed
Math: link to the corresponding classic GL/GLU functions.
...
I was porting some PyOpenGL code and knowing how the ancient GL API maps
to Magnum helped tremendously.
6 years ago
Vladimír Vondruš
d2961f19f4
Test: use new TestSuite API to simplify things.
6 years ago
Vladimír Vondruš
55d7a1e6e0
doc: updated changelog and credits.
6 years ago
Vladimír Vondruš
dbc67a01ce
Math: reorder test to be in the same order as in the header.
6 years ago
Vladimír Vondruš
07ba09c700
Math: minor cleanup.
...
No need to use contractions, inverseRayDirection is okay because nobody
needs to type it anywhere. Also no need for the `ones` vector in the
test, Float/Vector3 works as well.
6 years ago
janos
6a0fdf2194
add ray range interection algorithm
6 years ago
Vladimír Vondruš
686b915bc3
Math: this test wasn't right.
...
Uncovered after the latest Emscripten-related update to
CORRADE_LONG_DOUBLE_SAME_AS_DOUBLE.
6 years ago
Vladimír Vondruš
ef7232e71d
Math: clean up obsolete test workflows.
6 years ago
Vladimír Vondruš
095408791f
Updated changelog and credits.
6 years ago
Squareys
f69f3393ec
Math: Add DualQuaternion/DualComplex::from(rotation, translation)
...
Signed-off-by: Squareys <squareys@googlemail.com>
6 years ago
Vladimír Vondruš
e6322dcfd1
Math: use angle literals in all test code.
...
It was originally done using the Deg() / Rad() constructors in order to
be compatible with GCC 4.6, but fortunately those days are long gone.
Co-authored-by: Squareys <squareys@googlemail.com>
6 years ago
Vladimír Vondruš
83d6509595
Math: adapt to changes to Tweakable internals.
6 years ago
Vladimír Vondruš
9de4717f0e
Math: add popcount().
6 years ago
Vladimír Vondruš
89e3067009
Math: hmm, why this isn't in the FunctionsBenchmark, then?
...
Probably because it predates it.
6 years ago
Vladimír Vondruš
1510d41c4b
Math: this is also wrongly grouped.
6 years ago
Vladimír Vondruš
8019b285bd
Math: put reflect() and refract() outside of irrelevant group.
...
Got overlooked when merging this contribution.
6 years ago
Vladimír Vondruš
553034da9e
Math: doc++
6 years ago
Vladimír Vondruš
d01364ca1f
Math: document more what's cross() good for.
6 years ago
Vladimír Vondruš
70336a6a98
Math: remove pointless Emscripten restrictions in TypeTraits.
...
Size of long double is now tested in Corrade itself, so no need for any
of this.
6 years ago
Vladimír Vondruš
f225497475
Math: assert valid binomialCoefficient() input instead of returning 0.
6 years ago
Vladimír Vondruš
53a26ad024
Math: use 64-bit literals in a test to be really really sure.
6 years ago
Vladimír Vondruš
f1c713f4c8
Minor cleanup, doc++, updated changelog & credits.
6 years ago
janos
8013afc28c
Math: add binomial coefficient function.
6 years ago
Vladimír Vondruš
90283408cc
Math: doc++
6 years ago
Vladimír Vondruš
cd48c59cab
Remove remaining APIs deprecated in 2018.10.
6 years ago
Vladimír Vondruš
e6a8c99d89
Math: don't include Utility fwdecls when not needed.
6 years ago
Vladimír Vondruš
cb4f6183dc
Doc++, changelog, credits and version marker updates.
6 years ago
Pablo Escobar
daa6d9125e
Math: add fmod function
6 years ago
Vladimír Vondruš
5222cf3478
doc: change all "latest" additions/deprecations to 2020.06.
6 years ago
Vladimír Vondruš
a5722f175a
Doc++
6 years ago
Vladimír Vondruš
ca8172311d
Math: FFS, GCC.
6 years ago
Vladimír Vondruš
12577ce07f
Math: verify normal matrix calculation against the ground truth code.
...
It gives the same result, nevertheless something is not right when it
comes to negatively scaled meshes. Postponing the rest of the
investigation to later.
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š
a7956de7ba
Math: avoid std::is_pod.
...
GCC 10 complains that it's deprecated.
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š
cda8c8fd09
Math: MSVC 2017 apparently dies on this.
...
But only in the vcpkg package and only with 19.16.27034 (not 27035), so
probably some combination of /permissive- and a compiler bug is to
blame.
The template keyword was unnecessary in any case, it probably got copied
from elsewhere by accident.
6 years ago
Vladimír Vondruš
060d8548c6
Math: benchmark some sqrt variants.
6 years ago
Vladimír Vondruš
e05fda0db4
Math: this got forgotten.
6 years ago
Vladimír Vondruš
c114ca3fb9
Doc++
6 years ago
Vladimír Vondruš
22118c754d
Math: attempt to deconfuse orthogonalization/orthonormalization a bit.
6 years ago
Vladimír Vondruš
fc3382ec36
Math: make dot() twice as fast in Debug.
6 years ago
Vladimír Vondruš
573125d0a9
Math: make cross() 10x faster in Debug.
...
And the Vector3 version 5% slower in Release, on GCC at least. FFS,
what was I thinking with the gather() things. Nice in user code,
extremely bad in library code.
6 years ago
Vladimír Vondruš
341a497932
Math: benchmark vector dot() and cross().
...
Have to do some precision improvements, so a baseline is needed. The
debug perf is beyond awful, actually.
6 years ago
Vladimír Vondruš
65a2ced2a7
Make this compile and test cleanly with CORRADE_NO_ASSERT defined.
6 years ago
Vladimír Vondruš
d3f2235759
Adapted to Corrade changes.
6 years ago
Vladimír Vondruš
99a5e1d246
Math: test that slerp() is immune against too long quats as well.
6 years ago