From 45a11bcc68615ac014916e0523feb302449d28e9 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 19 Dec 2023 20:08:39 +0900 Subject: [PATCH] [math] Add a vector format macro vec3_t is still a thing so printing it should be easy. --- include/QF/math/vector.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/QF/math/vector.h b/include/QF/math/vector.h index f45893f50..5f1addcbd 100644 --- a/include/QF/math/vector.h +++ b/include/QF/math/vector.h @@ -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