Ejemplo n.º 1
0
 Vector2f Vector2f::operator/(const Vector2f& other) const {
     if (other.AnyEqual(Vector2f::Zero)) {
         throw InvalidArgumentException("divisor");
     }
     return Vector2f(x / other.x, y / other.y);
 }