equals(v) {
    return v.x === this.x && v.y === this.y;
  }
Checks if this vector is equal to another vector.
@param {Vector2D} v - The other vector.
@returns {boolean} True if the vectors are equal, false otherwise.