circles, triangles and rotations for primitive shapes

This commit is contained in:
2023-12-11 23:00:31 +02:00
committed by Illusion
parent a3fcd5b93f
commit 212c7b9d5a
6 changed files with 129 additions and 22 deletions
+3
View File
@@ -5,7 +5,10 @@ typedef struct {
} Matrix4x4;
Matrix4x4 identity();
void mult_4x4(Matrix4x4 *multiplicant, Matrix4x4 *multiplier);
void apply_rotation(Matrix4x4 *model, float angle);
Matrix4x4 orthographic_projection_2d(float left, float right, float bottom, float top);
int max(int a, int b);
float maxf(float a, float b);
float clampf(float value, float min, float max);
float to_radians(float degrees);