#pragma once #include "vector.h" typedef struct { double x, y, z; } Vec3; static inline Vec3 vec3_add(Vec3 a, Vec3 b); static inline Vec3 vec3_sub(Vec3 a, Vec3 b); static inline Vec3 vec3_mul_scalar(Vec3 a, double s); static inline double