feat: added vector comparison for int vectors

This commit is contained in:
Sara 2024-01-18 09:48:02 +01:00
parent 28ab75bf8d
commit 85c1952cc2

View file

@ -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};