mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-12 04:13:57 +00:00
[math] Add a vector format macro
vec3_t is still a thing so printing it should be easy.
This commit is contained in:
parent
0f24f10bb9
commit
45a11bcc68
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue