Sam Hocevar
|
2bf4cb668b
|
math: add a uniform scaling matrix constructor.
|
преди 12 години |
Sam Hocevar
|
d4c0c005d6
|
math: refactor real number constant declarations so that they are only
computed on demand with static initialisation.
|
преди 12 години |
Sam Hocevar
|
5c5abfa53c
|
math: improve slerp implementation.
|
преди 12 години |
jeunathe
|
5224a5dd99
|
Added test in slerp to avoid -1 quat members
|
преди 12 години |
jeunathe
|
cbd842b21a
|
Added Slerp method to Quat
|
преди 12 години |
Sam Hocevar
|
688c046414
|
math: add an sprintf() method to real numbers, and ensure they are always
fully initialised.
|
преди 12 години |
Sam Hocevar
|
28728814cc
|
core: replace usage of sin() or std::sin() with lol::sin() where appropriate.
|
преди 12 години |
Sam Hocevar
|
8375f3443d
|
build: fix the PS3 port by using our trig.h everywhere instead of stdlib
functions; also remove a lot of idiotic "using namespace std" from the
codebase.
|
преди 12 години |
Sam Hocevar
|
a3cf7086ce
|
math: fix minor compiler warnings that appeared with g++ 4.7.
|
преди 12 години |
Sam Hocevar
|
59ba6e6c87
|
core: no longer deactivate std::ostream features on Android.
|
преди 12 години |
Sam Hocevar
|
f30105e675
|
math: implement all Euler conversions for 3×3 matrices.
|
преди 12 години |
Sam Hocevar
|
552dfee5b1
|
math: implement quaternion creation from true Euler angles (as opposed
to the Tait-Bryan angles we had for now). Also, change quaternion storage
order to wxyz in order to match the constructors.
|
преди 12 години |
Sam Hocevar
|
da6062de06
|
core: add methods to set the camera's view matrix.
|
преди 12 години |
Sam Hocevar
|
e1d0beae1a
|
math: support all Tait-Bryan angle combinations in quaternions.
|
преди 12 години |
Sam Hocevar
|
fad3e434cf
|
math: fix a bug in mat3::fromeuler().
|
преди 12 години |
Sam Hocevar
|
ecda7cd569
|
math: replace mat3::rotate(quat) with an explicit constructor, and add
more unit tests for the quaternion to 3×3 matrix conversion.
|
преди 12 години |
Sam Hocevar
|
032b32271b
|
math: fix a bug in the rotation matrix to quaternion conversion, found
with the unit tests.
|
преди 12 години |
Sam Hocevar
|
e91c326f57
|
math: add methods to convert from a quaternion to Euler angles and from
Euler angles to a rotation matrix. Also fix quat::rotate() which was not
building the correct quaternion.
|
преди 12 години |
Sam Hocevar
|
fceeaf1c74
|
math: add quat::fromeuler static constructor for quaternions.
|
преди 12 години |
Sam Hocevar
|
ade0514b15
|
math: add min(), max() and clamp() for half, real and vector types.
|
преди 12 години |
Sam Hocevar
|
8325d8889c
|
math: chage quaternion constructor to wxyz order because it matches the
mathematical writing, and add static constructors to create quaternions
from a rotation.
|
преди 12 години |
Sam Hocevar
|
bed2d554c1
|
math: new mat3::scale() and mat4::scale() methods.
|
преди 12 години |
Sam Hocevar
|
3e3b254423
|
math: implement rotate() for mat3 in addition to mat4.
|
преди 12 години |
Sam Hocevar
|
eb51928415
|
math: add inversion code for 2×2 and 3×3 matrices, and transposition
code for all matrices.
|
преди 12 години |
Sam Hocevar
|
6868b1eb32
|
math: remove old non-working vector code for the float to half conversion.
|
преди 12 години |
Sam Hocevar
|
4624e6394a
|
math: fix VS2010 compiler warnings in the float/half conversion tables, and
replace the well known DeBruijn sequence with a custom magic value to spare
one binary operation.
|
преди 12 години |
Sam Hocevar
|
130071bd6a
|
math: add a few comments.
|
преди 12 години |
Sam Hocevar
|
56e4332597
|
build: reorganise math files in a single "math" directory, and get rid of the
"shader" source directory since we have "gpu".
|
преди 12 години |