mirror of
https://github.com/IllusionMan1212/cudoku.git
synced 2026-10-24 18:12:25 +00:00
15 lines
424 B
C
15 lines
424 B
C
#pragma once
|
|
|
|
typedef struct {
|
|
float m[4][4];
|
|
} 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);
|