def +(vector2)
    #Get the x and y components of the new vector.
    new_x = (self.x + vector2.x)
    new_y = (self.y + vector2.y)
    new_length_squared = new_x ** 2 + new_y ** 2
    new_length = (new_length_squared == 0 ? 0 : Math.sqrt(new_length_squared))
    new_angle = (new_x == 0 ? 0 : Utility.to_degrees(Math.atan2(new_y, new_x)))
    #Calculate speed and angle of new vector with components.
    Vector.new(new_length, new_angle)
  end
def +(vector2)
    #Get the x and y components of the new vector.
    new_x = (self.x + vector2.x)
    new_y = (self.y + vector2.y)
    new_length_squared = new_x ** 2 + new_y ** 2
    new_length = (new_length_squared == 0 ? 0 : Math.sqrt(new_length_squared))
    new_angle = (new_x == 0 ? 0 : Utility.to_degrees(Math.atan2(new_y, new_x)))
    #Calculate speed and angle of new vector with components.
    Vector.new(new_length, new_angle)
  end
Add this Vector to vector2, returning a new Vector.
This operation is useful when calculating the effect of wind or thrust on an object's current heading.