Benjamin ‘Touky’ Huet
60887138ff
Added tostring to vectors, similar to printf, but with tostring.
před 11 roky
Benjamin ‘Touky’ Huet
5f12e3ebc1
operator bis repetitas ....
před 11 roky
Benjamin ‘Touky’ Huet
115bd31b0e
Learn your fucking operators, you dumbass !!!!!
před 11 roky
Sam Hocevar
cdfb4e7abf
math: fix a few compilation warnings.
před 11 roky
Benjamin ‘Touky’ Huet
fd4cb5e350
Added debug stuff
před 11 roky
Sam Hocevar
76740f77bc
math: remove some vector constants that were a bit too specific.
před 12 roky
Benjamin ‘Touky’ Huet
98eb66b6c8
geomerty cleanup & tweak
před 12 roky
Benjamin ‘Touky’ Huet
c753233291
geom tweaks
před 12 roky
Benjamin ‘Touky’ Huet
b2bdb1972f
Several name tweaks here and there.
před 12 roky
Sam Hocevar
cb62b52ce6
math: add quat::axis() and quat::angle() to retrieve axis and angle from a
quaternion, improve quat::rotate(vec3, vec3) to gracefully handle corner
cases, and add unit tests for all of these.
před 12 roky
Benjamin ‘Touky’ Huet
b7fc1953ab
Some names tweaks
Added workbench, for personnal experimentation.
před 12 roky
Sam Hocevar
8443733a08
math: add GLSL-inherited degrees() and radians() conversion functions.
před 12 roky
Benjamin ‘Touky’ Huet
03474adceb
Added custom vector constants for more usefulness
před 12 roky
Benjamin ‘Touky’ Huet
88a4859287
Added Test Point in Frustum
před 12 roky
Sam Hocevar
2bbc0d965a
math: fix broken translation in lookat() function.
před 12 roky
Sam Hocevar
7cf2a85ae0
math: make mat4::lookat nicer to read.
před 12 roky
Sam Hocevar
2291ce5d1e
math: add mat2::identity, etc. as global constants.
před 12 roky
Sam Hocevar
3b62246ef8
math: minor rework in the Euler angles conversion.
před 12 roky
Benjamin ‘Touky’ Huet
747da72c44
Input : Small refactor, for clarity, easiness and beautification.
Constants : Added minus one.
před 12 roky
Benjamin ‘Touky’ Huet
2b4dc175ee
Vector classes : added one (for consistency)
SceneSetup : Added ClearColor command
EZMesh : Added Dup[ ... ] command && cgs command syntax refactor
MViewer : Tweak & dictionnary.js updates
před 12 roky
Sam Hocevar
5f3ad5cc15
math: add constant vectors vec2::zero, vec2::axis_x, etc.
před 12 roky
Benjamin ‘Touky’ Huet
0a7dc44a67
Added MessageService : Basic & Naive Message logging.
Camera & vector.cpp : Fixed shifted_perspective crash with almost zero FOV.
před 12 roky
Sam Hocevar
353d0a4417
math: last pass (hopefully) at the quaternion/euler conversions.
před 12 roky
Sam Hocevar
d5d73330e8
math: more quaternion to Euler angles fixes, plus unit tests.
před 12 roky
Sam Hocevar
9ecd579593
math: fix quaternion to euler conversion and add unit tests.
před 12 roky
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
před 12 roky
Sam Hocevar
58ec9dd582
math: add lol::sq() square function and simplify quaternion conversions.
před 12 roky
Sam Hocevar
6adf553806
math: implement vec3::toeuler_* for Tait-Bryan angles.
před 12 roky
Sam Hocevar
f193bc2caa
scene: break text rendering again so that 2D games work properly...
před 12 roky
Benjamin ‘Touky’ Huet
876f62228c
btphystest : added new camera functions. Added funny camera stuff for cat simulation.
před 12 roky
Sam Hocevar
7fa84cdf36
math: remove debug code.
před 12 roky
Sam Hocevar
c6e453fe5c
math: add unit tests for quat::rotate(vec3, vec3).
před 12 roky
Sam Hocevar
af6deb15a2
math: create a quaternion from two vectors.
před 12 roky
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.
před 12 roky
Sam Hocevar
d8c6d4c198
doc: add some comments in vector.cpp functions.
před 12 roky
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.
před 13 roky
Sam Hocevar
5a19e1539d
misc: fix a few URLs.
před 13 roky
Sam Hocevar
33f2199903
math: minor improvements to the Remez exchange algorithm.
před 13 roky
Sam Hocevar
1fc53d4df9
math: avoid unnecessary conversions in the half class and remove a
static method that we can do without.
před 13 roky
Sam Hocevar
eead925c59
math: use "degrees" as the variable name for rotations for clarity.
před 13 roky
Sam Hocevar
4678b4cb75
math: fix a signed integer overflow issue in the fast factorial
computation function.
před 13 roky
Sam Hocevar
16d53895fa
math: remove coercion rules in the vector classes, they increase the
compilation time for very little benefit and maybe even confusion.
před 13 roky
Lolbot
7e4da3d634
fixed 27 files out of 2315:
- removed 0 CR characters
- removed 188 trailing whitespaces
- replaced 537 tabs with spaces
před 13 roky
Benjamin ‘Touky’ Huet
3d56a23a55
Added geometry basic functions.
TODO : second pass on coding-style, and some tweak & usage modification.
před 13 roky
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
před 13 roky
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
před 13 roky
Sam Hocevar
2bf4cb668b
math: add a uniform scaling matrix constructor.
před 13 roky
Sam Hocevar
d4c0c005d6
math: refactor real number constant declarations so that they are only
computed on demand with static initialisation.
před 13 roky
Sam Hocevar
5c5abfa53c
math: improve slerp implementation.
před 13 roky
jeunathe
5224a5dd99
Added test in slerp to avoid -1 quat members
před 13 roky