Implement Vector-to-Vector Multiplication + division
This commit is contained in:
@@ -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};
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user