feat: added vector comparison for int vectors
This commit is contained in:
parent
28ab75bf8d
commit
85c1952cc2
|
@ -160,6 +160,11 @@ Vector vaveragef(Vector* array, size_t count) {
|
||||||
return vmulff(acc, 1.0f/(float)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
|
static inline
|
||||||
IVector vaddi(IVector a, IVector b) {
|
IVector vaddi(IVector a, IVector b) {
|
||||||
return (IVector){a.x + b.x, a.y + b.y};
|
return (IVector){a.x + b.x, a.y + b.y};
|
||||||
|
|
Loading…
Reference in a new issue