Vladimír Vondruš
deb54fc92f
GCC 4.6 compatibility: no inheriting constructors in Math::Vector.
13 years ago
Vladimír Vondruš
0e34eeda58
GCC 4.6 compatibility: no delegating constructors in Math::BoolVector.
13 years ago
Vladimír Vondruš
3c407f2226
GCC 4.6 compatibility: fix warning about injected-class-name.
13 years ago
Vladimír Vondruš
2cdb159cbd
GCC 4.6 compatibility: no user-defined literals.
13 years ago
Vladimír Vondruš
a75ed22d4e
Updated portability tips documentation.
13 years ago
Vladimír Vondruš
618b556381
Math: crosslinked documentation with missing type aliases.
13 years ago
Vladimír Vondruš
1693c772ad
Moved OpenGL includes out from Magnum.h.
...
OpenGL includes are ~35k lines together and it is a waste of
compilation time to include them even if they are not needed at all
(e.g. whole SceneGraph and Physics libraries). Saves ~10s of compilation
time (6:46 before, now 6:35).
13 years ago
Vladimír Vondruš
c707370f30
Removed unneeded includes.
13 years ago
Vladimír Vondruš
b5c1052c96
DebugTools: using new type aliases in whole DebugTools namespace.
13 years ago
Vladimír Vondruš
006dbf417a
Platform: using new type aliases in whole Platform namespace.
13 years ago
Vladimír Vondruš
a7a4d3eeb8
Text: using new type aliases in whole Text namespace.
13 years ago
Vladimír Vondruš
5f049c50b8
Physics: using new type aliases in whole Physics namespace.
13 years ago
Vladimír Vondruš
4e5a6f76eb
SceneGraph: using new type aliases in whole SceneGraph namespace.
13 years ago
Vladimír Vondruš
003e524a26
Shaders: using new type aliases in whole Shaders namespace.
13 years ago
Vladimír Vondruš
32b783505f
MeshTools: using new type aliases in whole MeshTools namespace.
13 years ago
Vladimír Vondruš
e4f6a53185
Primitives: using new type aliases in whole Primitives namespace.
13 years ago
Vladimír Vondruš
7af5ff17b6
Trade: using new type aliases in whole Trade namespace.
13 years ago
Vladimír Vondruš
2d2d1c07f4
Using new type aliases in whole root Magnum namespace.
13 years ago
Vladimír Vondruš
6a90b0231b
Math: using new aliases for builtin types in whole Math namespace.
13 years ago
Vladimír Vondruš
6220f24f0b
Our own aliases for builtin types.
...
It seems like a bad idea, but it will:
* Improve portability, as `Int` will be always 32bit.
* Improve readability, as `std::int32_t` is just plain ugly and too
complicated to write.
* Improve consistency and reduce confusion, as it's not good to mix
`int`, `std::int32_t`, `GLint`, `khronos_int_t` and whatnot in one
codebase.
* Possibly reduce compilation time, because including all ~35k lines
worth of GL headers just for one GLfloat typedef is even worse than
now forbidden #include <iostream> in headers.
13 years ago
Vladimír Vondruš
792198ae89
Platform: undefine another conflicting macro.
13 years ago
Vladimír Vondruš
baeda307c1
Math: do Matrix::trace() using diagonal() and Vector::sum().
...
Use (future) SIMD optimizations in Vector::sum() instead of doing it all
over again.
13 years ago
Vladimír Vondruš
5ff0e29950
Math: fix warning about literal types in normalize().
...
C++11 changed type of character literal (i.e. '\x7F') from int to char,
thus the documentation is wrong (also mistakenly used octal literal).
Added test to properly test the behavior.
13 years ago
Vladimír Vondruš
8913e38432
Math: documented this whole transformation thingy.
13 years ago
Vladimír Vondruš
14460cf0f4
Math: renamed *::matrix() to ::toMatrix().
...
It better visualizes the fact that neither (Dual)Complex nor
(Dual)Quaternion contains the matrix inside them, but performs (possibly
costly) conversion.
13 years ago
Vladimír Vondruš
e8e8e67483
MeshTools: ability to call transformPoints*() also with DualComplex.
13 years ago
Vladimír Vondruš
e204dbc109
Brought DualComplex into Magnum namespace.
13 years ago
Vladimír Vondruš
a0af6856c7
Math: transforming points with DualComplex.
13 years ago
Vladimír Vondruš
268c07acc5
Math: converting DualComplex to matrix.
13 years ago
Vladimír Vondruš
8e562316e8
Math: creating DualComplex from Vector2.
13 years ago
Vladimír Vondruš
7aac5bd70b
Math: no need for Complex::transformVectorNormalized().
...
Unlike quaternions it doesn't need inversion or normalization for
transforming vectors.
13 years ago
Vladimír Vondruš
90f5a006c4
Math: reworked DualComplex to actually work.
...
The tests now pass and it works similarly to transformation matrix
multiplication/inversion in 2D, but it hasn't any connection to dual
numbers anymore.
13 years ago
Vladimír Vondruš
8ff9118275
Math: test DualComplex transformation combination.
...
Also fails.
13 years ago
Vladimír Vondruš
5e2f8db651
Math: test also that DualComplex transformations are normalized.
...
Fails for translation.
13 years ago
Vladimír Vondruš
c019dc7781
Math: test that transformation (dual) complex/quat is normalized.
13 years ago
Vladimír Vondruš
bdc02ddd19
Math: translation dual complex number.
13 years ago
Vladimír Vondruš
1a5e18564e
Math: rotation dual complex number.
13 years ago
Vladimír Vondruš
fbac6662fa
Math: inversion of DualComplex.
13 years ago
Vladimír Vondruš
d7bfd91398
Math: length and normalization of DualComplex.
13 years ago
Vladimír Vondruš
f6d1a158f8
Math: initial implementation of dual complex numbers.
13 years ago
Vladimír Vondruš
e522293c22
Math: forgot to test DualQuaternion::invertedNormalized().
13 years ago
Vladimír Vondruš
143783004b
Math: make Complex::invertedNormalized() consistent with Quaternion.
13 years ago
Vladimír Vondruš
d0fe15737a
Math: mark complex conjugate with asterisk, not overline.
...
Makes it consistent with quaternion conjugate and less confusing for
future DualComplex implementation (as dual conjugate is with overline
too).
13 years ago
Vladimír Vondruš
c847e1551f
Math: "dot product" of Complex is real number.
...
Brain failure #2 . Also I don't know if such thing as dot product exists
here :-)
13 years ago
Vladimír Vondruš
1eea843538
Math: don't allow implicit conversion of T to Complex<T>.
...
Brain failure #1 .
13 years ago
Vladimír Vondruš
6edc26ff01
Math: more explicit Quaternion-from-Vector constructor test.
...
For better readability, nothing more.
13 years ago
Vladimír Vondruš
6ed315b79b
Math: properly test constexpr in Complex from Vector2 constructor.
13 years ago
Vladimír Vondruš
e8e2b5d548
Math: constexpr internal DualQuaternion constructor.
13 years ago
Vladimír Vondruš
b0d79bbad8
Math: minor code cleanup.
13 years ago
Vladimír Vondruš
2468d2497f
Math: doc++
13 years ago