Add levelling

This commit is contained in:
Camden Dixie O'Brien
2025-10-15 18:37:21 +01:00
parent ac0d3de2fb
commit a1cfb77cac
5 changed files with 122 additions and 38 deletions

View File

@@ -41,6 +41,11 @@ float vec2_dot(vec2_t v1, vec2_t v2)
return v1.x * v2.x + v1.y * v2.y;
}
vec2_t vec3_reduce(vec3_t v)
{
return (vec2_t) { v.x / v.z, v.y / v.z };
}
mat2_t mat2_rotation(float theta)
{
return (mat2_t) {