def at_end_of_edge(point, edge_length):
    """Calculate if we are at the end of the edge of the current square."""
    middle_point = int(edge_length / 2)
    return abs(point.real) == middle_point and abs(point.imag) == middle_point