X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg%2Fvg_m.h;h=a0c01077048b0a5cd599f206e428b474ca3af1d9;hb=5276db4a15a6565813bdde22198f8aee4030e56f;hp=dd7f49b6d4cf7571862ee6c01df317701beda59f;hpb=313de221328d756742ddc6f52386d9ddae067e7c;p=fishladder.git diff --git a/vg/vg_m.h b/vg/vg_m.h index dd7f49b..a0c0107 100644 --- a/vg/vg_m.h +++ b/vg/vg_m.h @@ -60,6 +60,11 @@ static inline void v2i_add( v2i a, v2i b, v2i d ) d[0] = a[0]+b[0]; d[1] = a[1]+b[1]; } +static inline void v2i_sub( v2i a, v2i b, v2i d ) +{ + d[0] = a[0]-b[0]; d[1] = a[1]-b[1]; +} + static inline void v2_minv( v2f a, v2f b, v2f dest ) { dest[0] = vg_minf(a[0], b[0]);