Implement Vector-to-Vector Multiplication + division

This commit is contained in:
2024-01-29 14:43:51 -05:00
parent 47b25c695f
commit e76a0954d3
2 changed files with 10 additions and 4 deletions

View File

@@ -243,5 +243,9 @@ namespace LinearAlgebra {
return std::max(x, y);
}
Vector2 Vector2::Mul(const Vector2 &v) const {
return {this->x*v.x, this->y*v.y};
}
}