Add levelling

This commit is contained in:
2025-10-18 17:43:22 +01:00
parent 2078eb07da
commit 4da5437715
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) {