import math


def distance_two_points(point_a, point_b):
    """
    Calculate distance of two points.
    """
    distance = math.sqrt(pow((point_a.pos_x - point_b.pos_x), 2) + pow((point_a.pos_y - point_b.pos_y), 2))
    return distance