diff --git a/mathprimitives/mathprimitives.h b/mathprimitives/mathprimitives.h index ac66689..87784f7 100644 --- a/mathprimitives/mathprimitives.h +++ b/mathprimitives/mathprimitives.h @@ -99,7 +99,7 @@ static inline double mat3_det(struct Mat3 a) { a.r1.z * (a.r2.x * a.r3.y - a.r2.y * a.r3.x); } -static struct Mat3 mat3_inv(struct Mat3 a) { +static inline struct Mat3 mat3_inv(struct Mat3 a) { double inv_det = 1.0 / mat3_det(a); struct Vec3 r1 = vec3_scale( (struct Vec3){