Sam Hocevar
|
2d3307c6b2
|
math: move cross product out of the .cpp file.
|
13 年之前 |
Sam Hocevar
|
60a2e83d54
|
xbox: start working on an Xbox/Direct3D port.
|
13 年之前 |
Sam Hocevar
|
6951578bb7
|
math: minor compilation fixes for Visual Studio. Still does not link.
|
13 年之前 |
Sam Hocevar
|
0a52e68f6f
|
math: rename matrix.h to vector.h and simplify some stuff, especially in
the matrix code itself.
|
13 年之前 |
Sam Hocevar
|
c8d5630e4e
|
math: finally get the GLSL-like swizzling to work.
|
13 年之前 |
Sam Hocevar
|
d38a79ee3d
|
math: move most vector and matrix member functions to global functions.
|
13 年之前 |
Sam Hocevar
|
433d05964c
|
core: implement complex numbers and add unit tests for these.
|
13 年之前 |
Sam Hocevar
|
3e9d3e323b
|
math: build quaternions from rotation matrices and conversely.
|
13 年之前 |
Sam Hocevar
|
def84d569d
|
core: implement a quaternion class and tighten some vector operation rules
to avoid common programming errors.
|
13 年之前 |
Sam Hocevar
|
01ebcec3b8
|
core: split vector operations into linear and non-linear so that we can
reuse the linear operations in quaternions. Also mark some constructors
explicit to better spot coding errors.
|
13 年之前 |
Sam Hocevar
|
3978ea9e2a
|
core: fix bugs in mat4::lookat() and mat4::perspective(), and ensure these
function use degrees rather than radians.
|
13 年之前 |
Sam Hocevar
|
4a16c072f2
|
core: new combinations of integer vectors (unsigned, 8-bit, etc.), dot and
cross product, normalize, etc.
|
13 年之前 |
Sam Hocevar
|
7b7d4fe003
|
build: stop defining ANDROID_NDK and check for __ANDROID__ instead.
According to David Turner, “it should be the only thing that NDK users
should be testing again.”
|
13 年之前 |
Sam Hocevar
|
70fdf1cadb
|
core: add std::ostream operators for vector and matrix classes.
|
13 年之前 |
Sam Hocevar
|
3d4af0869a
|
ps3: start a minimal PS3 port using PSGL, but not CG yet.
|
14 年之前 |
Sam Hocevar
|
10b321b204
|
core: get rid of now useless <cstdio> includes.
|
14 年之前 |
Sam Hocevar
|
1e5624d551
|
core: create a logger class to reduce printf usage.
|
14 年之前 |
Sam Hocevar
|
0d6f9ef185
|
Basic utility function to display matrices.
|
14 年之前 |
Sam Hocevar
|
8848cf53db
|
Put everything in the "lol" namespace. Better late than never.
|
14 年之前 |
Sam Hocevar
|
6405ef32ea
|
Get rid of float3, float4, int3 etc. in favour of GLSL types.
|
14 年之前 |
Sam Hocevar
|
e1d6dbebce
|
Implement float4x4::rotate().
|
14 年之前 |
Sam Hocevar
|
a17ef2ca4c
|
Implement float4x4::ortho() and float4x4::translate().
|
14 年之前 |
Sam Hocevar
|
dcc0087455
|
Fix a nasty bug in the float4x4::frustum() computation.
|
14 年之前 |
Sam Hocevar
|
b9c013e665
|
Implement float4x4::frustum() and float4x4::perspective() to build
projection matrices.
|
14 年之前 |
Sam Hocevar
|
7015943141
|
Add matrix determinant and inverse methods.
|
14 年之前 |