diff --git a/core/src/vmath.h b/core/src/vmath.h index 029463f..7c99083 100644 --- a/core/src/vmath.h +++ b/core/src/vmath.h @@ -160,6 +160,11 @@ Vector vaveragef(Vector* array, size_t count) { return vmulff(acc, 1.0f/(float)count); } +static inline +int veqi(IVector a, IVector b) { + return a.x == b.x && a.y == b.y; +} + static inline IVector vaddi(IVector a, IVector b) { return (IVector){a.x + b.x, a.y + b.y};