import math


def distance_vehicle(waypoint, vehicle_position):
    """Return distance to a waypoint"""
    dx = waypoint.location.x - vehicle_position.x
    dy = waypoint.location.y - vehicle_position.y

    return math.sqrt(dx * dx + dy * dy)