import math


def distance_between_points(x1: float, y1: float, x2: float, y2: float) -> float:
    """
    Calculate the distance between two points in 2D space.
    :param x1: coordinate of point 1
    :param y1: coordinate of point 1
    :param x2: coordinate of point 2
    :param y2: coordinate of point 2
    :return: a floating point value representing the distance.
    """

    return math.hypot(x2 - x1, y2 - y1)