This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <multimap.h> | |
#include <iostream.h> | |
using namespace std; | |
enum Hook{ | |
KRISTOF_HOOK = 0, | |
ANDERE_HOOK = 1 | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float linearTween(float t, float start, float end){ | |
return t * start + (1-t) * end; | |
} | |
float QuadraticEaseInOut(float t, float start, float end){ | |
float middle = (start + end) / 2; | |
t = 2 * t; | |
if (t <= 1) | |
return linearTween(t*t, start, middle); | |
t-= 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mat4 LookAt(const vec3& eye, const vec3& target, const vec3& up) { | |
vec3 z = (eye - target).Normalized(); | |
vec3 x = up.Cross(z).Normalized(); | |
vec3 y = z.Cross(x).Normalized(); | |
mat4 m; | |
m.x = vec4(x, 0); | |
m.y = vec4(y, 0); | |
m.z = vec4(z, 0); | |
m.w = vec4(0,0,0,1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int test(int, int); | |
int main(void){ | |
int a = 6; | |
int b = 9; | |
printf("%d + %d = %d", a, b, test(a, b)); | |
return 0; | |
} | |
NewerOlder