[util] Add macro for using vectors with scanf

This commit is contained in:
Bill Currie 2021-03-03 18:11:59 +09:00
parent 2cc30f9dfd
commit 0da3b35ef5

View file

@ -176,6 +176,8 @@ extern const vec_t *const vec3_origin;
//For printf etc
#define VectorExpand(v) (v)[0], (v)[1], (v)[2]
//For scanf etc
#define VectorExpandAddr(v) &(v)[0], &(v)[1], &(v)[2]
/*
* VectorDistance, the distance between two points.