[math] Add a vector format macro

vec3_t is still a thing so printing it should be easy.
This commit is contained in:
Bill Currie 2023-12-19 20:08:39 +09:00
parent 0f24f10bb9
commit 45a11bcc68

View file

@ -170,6 +170,8 @@ extern const vec_t *const vec3_origin;
(v)[2] = (v1)[2] * (1 - (b)) + (v2)[2] * (b); \
} while (0)
#define VectorFMT "[%.9g %.9g %.9g]"
//For printf etc
#define VectorExpand(v) (v)[0], (v)[1], (v)[2]
//For scanf etc