Sam Hocevar
3862ad59dc
base: going on a lowercase rampage; today’s victim: Array.
il y a 11 ans
Sam Hocevar
7e9f926c43
base: switch map, hash, array2d and array3d to lowercase, like standard
C++ containers.
il y a 11 ans
Sam Hocevar
32abfb18d1
base: various Visual Studio compilation fixes.
il y a 11 ans
Sam Hocevar
0b97173ee8
math: initialiser lists for Array2D and Array3D.
il y a 11 ans
Sam Hocevar
8abafbc686
math: add Array3D template class. Happy, Touky? :-)
il y a 11 ans
Sam Hocevar
7d91e2c94f
math: Array2D now proxies Count(), Bytes() and Data() methods from Array.
il y a 11 ans
Sam Hocevar
198b8c7abf
math: add unary + operator for vectors.
il y a 11 ans
Sam Hocevar
2ff9a91085
math: fix incorrect maths in Array2D.
il y a 11 ans
Sam Hocevar
5fb1ce656f
math: add an Array2D class that acts like a 2D matrix.
il y a 11 ans
Benjamin ‘Touky’ Huet
60887138ff
Added tostring to vectors, similar to printf, but with tostring.
il y a 11 ans
Sam Hocevar
5f17711f91
math: minor cleanup.
il y a 11 ans
Sam Hocevar
1713602077
math: revert the lvalue vector swizzles because VS2012 lags behind.
il y a 11 ans
Sam Hocevar
ab470ef409
math: activate vector swizzling for lvalues.
il y a 11 ans
Sam Hocevar
99db2f0c11
base: port all existing codebase to safe enums where absolutely required.
il y a 11 ans
Sam Hocevar
7e769d6c79
base: make the safe enums slightly safer. :-)
il y a 12 ans
Benjamin ‘Touky’ Huet
1e4af19a89
Praise the Safe-Enum.
Implemented Safe-Enum for everyone.
Now the power is in the Safe-Enum for all.
il y a 12 ans
Sam Hocevar
cdfb4e7abf
math: fix a few compilation warnings.
il y a 12 ans
Benjamin ‘Touky’ Huet
f3888782da
geom tweak
il y a 12 ans
Benjamin ‘Touky’ Huet
706766893f
Fixed geometry stupidity calculations
il y a 12 ans
Sam Hocevar
a66e5c6dab
geometry: implement point-to-segment distance function.
il y a 12 ans
Benjamin ‘Touky’ Huet
fd4cb5e350
Added debug stuff
il y a 12 ans
Benjamin ‘Touky’ Huet
fe877b6509
Mesh CSG update.
il y a 12 ans
Benjamin ‘Touky’ Huet
ee96d2668d
Added basic crude array funcs
il y a 12 ans
Sam Hocevar
76740f77bc
math: remove some vector constants that were a bit too specific.
il y a 12 ans
Benjamin ‘Touky’ Huet
98eb66b6c8
geomerty cleanup & tweak
il y a 12 ans
Benjamin ‘Touky’ Huet
c753233291
geom tweaks
il y a 12 ans
Benjamin ‘Touky’ Huet
b2bdb1972f
Several name tweaks here and there.
il y a 12 ans
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.
il y a 12 ans
Benjamin ‘Touky’ Huet
b7fc1953ab
Some names tweaks
Added workbench, for personnal experimentation.
il y a 12 ans
Benjamin ‘Touky’ Huet
ac8d88cb52
Hack-fix of degrees/radians in functions.h Warnings
il y a 12 ans
Sam Hocevar
8443733a08
math: add GLSL-inherited degrees() and radians() conversion functions.
il y a 12 ans
Benjamin ‘Touky’ Huet
03474adceb
Added custom vector constants for more usefulness
il y a 12 ans
Benjamin ‘Touky’ Huet
88a4859287
Added Test Point in Frustum
il y a 12 ans
Sam Hocevar
2291ce5d1e
math: add mat2::identity, etc. as global constants.
il y a 12 ans
Sam Hocevar
e1d459ed75
math: allow quat * vec3 and quat * vec4 operations.
il y a 12 ans
Sam Hocevar
7d230d7674
math: add distance() function for vectors.
il y a 12 ans
Sam Hocevar
90706c8d44
lolremez: move some LolRemez matrix functions out of the engine.
il y a 12 ans
Sam Hocevar
f9840e3458
lolremez: move LolRemez out of the engine, it's really too specific.
il y a 12 ans
Benjamin ‘Touky’ Huet
747da72c44
Input : Small refactor, for clarity, easiness and beautification.
Constants : Added minus one.
il y a 12 ans
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
il y a 12 ans
Sam Hocevar
c42e9a37a9
build: tweaks for C++11 support on Android.
il y a 12 ans
Sam Hocevar
5f3ad5cc15
math: add constant vectors vec2::zero, vec2::axis_x, etc.
il y a 12 ans
Sam Hocevar
7108f8566d
math: add orthogonal() and orthonormal() for 3-component vectors.
il y a 12 ans
Sam Hocevar
9cfe17fd8b
core: fix some minor compiler warnings.
il y a 12 ans
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
il y a 12 ans
Benlitz
e50f75403a
core: added StartsWith and EndsWith function for strings, and a sign function for numeric types
il y a 12 ans
Sam Hocevar
58ec9dd582
math: add lol::sq() square function and simplify quaternion conversions.
il y a 12 ans
Sam Hocevar
6adf553806
math: implement vec3::toeuler_* for Tait-Bryan angles.
il y a 12 ans
Sam Hocevar
af6deb15a2
math: create a quaternion from two vectors.
il y a 12 ans
Sam Hocevar
e848af3f2a
math: fix an error in the quaternion code and update test suite.
il y a 12 ans