Benjamin ‘Touky’ Huet
f3888782da
geom tweak
12 年之前
Benjamin ‘Touky’ Huet
706766893f
Fixed geometry stupidity calculations
12 年之前
Sam Hocevar
a66e5c6dab
geometry: implement point-to-segment distance function.
12 年之前
Benjamin ‘Touky’ Huet
fd4cb5e350
Added debug stuff
12 年之前
Benjamin ‘Touky’ Huet
fe877b6509
Mesh CSG update.
12 年之前
Benjamin ‘Touky’ Huet
ee96d2668d
Added basic crude array funcs
12 年之前
Sam Hocevar
76740f77bc
math: remove some vector constants that were a bit too specific.
12 年之前
Benjamin ‘Touky’ Huet
98eb66b6c8
geomerty cleanup & tweak
12 年之前
Benjamin ‘Touky’ Huet
c753233291
geom tweaks
12 年之前
Benjamin ‘Touky’ Huet
b2bdb1972f
Several name tweaks here and there.
12 年之前
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.
12 年之前
Benjamin ‘Touky’ Huet
b7fc1953ab
Some names tweaks
Added workbench, for personnal experimentation.
12 年之前
Benjamin ‘Touky’ Huet
ac8d88cb52
Hack-fix of degrees/radians in functions.h Warnings
12 年之前
Sam Hocevar
8443733a08
math: add GLSL-inherited degrees() and radians() conversion functions.
12 年之前
Benjamin ‘Touky’ Huet
03474adceb
Added custom vector constants for more usefulness
12 年之前
Benjamin ‘Touky’ Huet
88a4859287
Added Test Point in Frustum
12 年之前
Sam Hocevar
2291ce5d1e
math: add mat2::identity, etc. as global constants.
12 年之前
Sam Hocevar
e1d459ed75
math: allow quat * vec3 and quat * vec4 operations.
12 年之前
Sam Hocevar
7d230d7674
math: add distance() function for vectors.
12 年之前
Sam Hocevar
90706c8d44
lolremez: move some LolRemez matrix functions out of the engine.
12 年之前
Sam Hocevar
f9840e3458
lolremez: move LolRemez out of the engine, it's really too specific.
12 年之前
Benjamin ‘Touky’ Huet
747da72c44
Input : Small refactor, for clarity, easiness and beautification.
Constants : Added minus one.
12 年之前
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
12 年之前
Sam Hocevar
c42e9a37a9
build: tweaks for C++11 support on Android.
12 年之前
Sam Hocevar
5f3ad5cc15
math: add constant vectors vec2::zero, vec2::axis_x, etc.
12 年之前
Sam Hocevar
7108f8566d
math: add orthogonal() and orthonormal() for 3-component vectors.
12 年之前
Sam Hocevar
9cfe17fd8b
core: fix some minor compiler warnings.
12 年之前
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 年之前
Benlitz
e50f75403a
core: added StartsWith and EndsWith function for strings, and a sign function for numeric types
12 年之前
Sam Hocevar
58ec9dd582
math: add lol::sq() square function and simplify quaternion conversions.
12 年之前
Sam Hocevar
6adf553806
math: implement vec3::toeuler_* for Tait-Bryan angles.
12 年之前
Sam Hocevar
af6deb15a2
math: create a quaternion from two vectors.
12 年之前
Sam Hocevar
e848af3f2a
math: fix an error in the quaternion code and update test suite.
12 年之前
Lolbot
8cc04f0ba9
fixed 7 files out of 2745:
- removed 0 CR characters
- removed 21 trailing whitespaces
- replaced 42 tabs with spaces
12 年之前
Sam Hocevar
e4d4f8df19
math: implement == and != for 2D and 3D box types.
12 年之前
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 年之前
Sam Hocevar
384fca5af6
math: new constructor for Box2 and Box3 objects.
13 年之前
Sam Hocevar
96e26a2bd5
math: rename Box2D to "box2" and add an integer version, "ibox2".
13 年之前
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 年之前
Sam Hocevar
18fd5c9081
math: try to refactor rand() to bypass an X360 compiler bug.
13 年之前
Sam Hocevar
94acb0f519
build: the “fuck you, Apple” commit; work around three different
compiler bugs in the Xcode toolchain.
13 年之前
Sam Hocevar
78636c40ef
math: fix the shit I just broke.
13 年之前
Sam Hocevar
56f093817d
math: don't use the LLU suffix for 64-bit numbers and don't use floorf().
13 年之前
Sam Hocevar
700520d4d6
math: move rand() to its own header, ensure it only returns
positive values, and add a unit test for rand<int>.
13 年之前
Sam Hocevar
39a8c26fb5
base: start removing occurrences of NULL on our long journey to nullptr.
13 年之前
Sam Hocevar
5b23d7cceb
math: minor code simplification in Box2D/Box3D.
13 年之前
Sam Hocevar
8143b73ffb
math: add Box2d + vec2 operations for easy box translations.
13 年之前
Sam Hocevar
fdc877cc29
math: fix an idiotic bug in the box-box intersection routine.
13 年之前
Sam Hocevar
65161c6809
math: add BoxIsectBox() method to test interesections.
13 年之前
Sam Hocevar
2cdb570799
math: add a default constructor to box classes.
13 年之前