vector2_base operator *(const vector2_base &v) const { return vector2_base(x*v.x, y*v.y); }
is this even mathematically correct?, i think you cannot multiply vectors like thatT operator *(const vector2_base &v) const { return x * v.x + y * v.y; };
if i got the equation rightvector2_base operator /(const vector2_base &v) const { return vector2_base(x/v.x, y/v.y); }
which i also doubt its mathematically right*
is point-wise there, @
matrix-multiplication/dot productbool operator ==(const vector2_base &v) const { return x == v.x && y == v.y; } //TODO: do this with an eps instead
what is eps?num * [x, y] = [num * x, num * y]
(edited)T operator *(const vector2_base &v) const { return x * v.x + y * v.y; };
vector2_base operator *(const vector2_base &v) const { return vector2_base(x*v.x, y*v.y); }