Sam Hocevar
5f3ad5cc15
math: add constant vectors vec2::zero, vec2::axis_x, etc.
12 yıl önce
Benjamin ‘Touky’ Huet
0a7dc44a67
Added MessageService : Basic & Naive Message logging.
Camera & vector.cpp : Fixed shifted_perspective crash with almost zero FOV.
12 yıl önce
Sam Hocevar
353d0a4417
math: last pass (hopefully) at the quaternion/euler conversions.
12 yıl önce
Sam Hocevar
d5d73330e8
math: more quaternion to Euler angles fixes, plus unit tests.
12 yıl önce
Sam Hocevar
9ecd579593
math: fix quaternion to euler conversion and add unit tests.
12 yıl önce
Benjamin ‘Touky’ Huet
04556dea8b
mat4 : removed useless ortho(). Fixed shifted_perspective so it actually works.
numeric : Added SmoothClamp & swap
camera : fixed target&up issues and added screen-scale factor.
touky_demo : correct camera integration & first pass on uro refactor. Also added Makefile to vcproj
12 yıl önce
Sam Hocevar
58ec9dd582
math: add lol::sq() square function and simplify quaternion conversions.
12 yıl önce
Sam Hocevar
6adf553806
math: implement vec3::toeuler_* for Tait-Bryan angles.
12 yıl önce
Sam Hocevar
f193bc2caa
scene: break text rendering again so that 2D games work properly...
12 yıl önce
Benjamin ‘Touky’ Huet
876f62228c
btphystest : added new camera functions. Added funny camera stuff for cat simulation.
12 yıl önce
Sam Hocevar
7fa84cdf36
math: remove debug code.
12 yıl önce
Sam Hocevar
c6e453fe5c
math: add unit tests for quat::rotate(vec3, vec3).
12 yıl önce
Sam Hocevar
af6deb15a2
math: create a quaternion from two vectors.
12 yıl önce
Benjamin ‘Touky’ Huet
181334f5ad
Added shifted_perspective for easier camera handling.
MeshViewer : Camera update and small object tweak.
ortho to perspective transition is now perfect.
12 yıl önce
Sam Hocevar
d8c6d4c198
doc: add some comments in vector.cpp functions.
13 yıl önce
Sam Hocevar
6faf4ee067
base: roll our own constants because it’s always a pain in the ass
to get M_PI from the platform headers and cast it to float.
13 yıl önce
Sam Hocevar
5a19e1539d
misc: fix a few URLs.
13 yıl önce
Sam Hocevar
33f2199903
math: minor improvements to the Remez exchange algorithm.
13 yıl önce
Sam Hocevar
1fc53d4df9
math: avoid unnecessary conversions in the half class and remove a
static method that we can do without.
13 yıl önce
Sam Hocevar
eead925c59
math: use "degrees" as the variable name for rotations for clarity.
13 yıl önce
Sam Hocevar
4678b4cb75
math: fix a signed integer overflow issue in the fast factorial
computation function.
13 yıl önce
Sam Hocevar
16d53895fa
math: remove coercion rules in the vector classes, they increase the
compilation time for very little benefit and maybe even confusion.
13 yıl önce
Lolbot
7e4da3d634
fixed 27 files out of 2315:
- removed 0 CR characters
- removed 188 trailing whitespaces
- replaced 537 tabs with spaces
13 yıl önce
Benjamin ‘Touky’ Huet
3d56a23a55
Added geometry basic functions.
TODO : second pass on coding-style, and some tweak & usage modification.
13 yıl önce
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
13 yıl önce
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
13 yıl önce
Sam Hocevar
2bf4cb668b
math: add a uniform scaling matrix constructor.
13 yıl önce
Sam Hocevar
d4c0c005d6
math: refactor real number constant declarations so that they are only
computed on demand with static initialisation.
13 yıl önce
Sam Hocevar
5c5abfa53c
math: improve slerp implementation.
13 yıl önce
jeunathe
5224a5dd99
Added test in slerp to avoid -1 quat members
13 yıl önce
jeunathe
cbd842b21a
Added Slerp method to Quat
13 yıl önce
Sam Hocevar
688c046414
math: add an sprintf() method to real numbers, and ensure they are always
fully initialised.
13 yıl önce
Sam Hocevar
28728814cc
core: replace usage of sin() or std::sin() with lol::sin() where appropriate.
13 yıl önce
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.
13 yıl önce
Sam Hocevar
a3cf7086ce
math: fix minor compiler warnings that appeared with g++ 4.7.
14 yıl önce
Sam Hocevar
59ba6e6c87
core: no longer deactivate std::ostream features on Android.
14 yıl önce
Sam Hocevar
f30105e675
math: implement all Euler conversions for 3×3 matrices.
14 yıl önce
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.
14 yıl önce
Sam Hocevar
da6062de06
core: add methods to set the camera's view matrix.
14 yıl önce
Sam Hocevar
e1d0beae1a
math: support all Tait-Bryan angle combinations in quaternions.
14 yıl önce
Sam Hocevar
fad3e434cf
math: fix a bug in mat3::fromeuler().
14 yıl önce
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.
14 yıl önce
Sam Hocevar
032b32271b
math: fix a bug in the rotation matrix to quaternion conversion, found
with the unit tests.
14 yıl önce
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.
14 yıl önce
Sam Hocevar
fceeaf1c74
math: add quat::fromeuler static constructor for quaternions.
14 yıl önce
Sam Hocevar
ade0514b15
math: add min(), max() and clamp() for half, real and vector types.
14 yıl önce
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.
14 yıl önce
Sam Hocevar
bed2d554c1
math: new mat3::scale() and mat4::scale() methods.
14 yıl önce
Sam Hocevar
3e3b254423
math: implement rotate() for mat3 in addition to mat4.
14 yıl önce
Sam Hocevar
eb51928415
math: add inversion code for 2×2 and 3×3 matrices, and transposition
code for all matrices.
14 yıl önce