def get_coords(x, y, params):
    """
    Transforms the given coordinates from plane-space to Mandelbrot-space (real and imaginary).

    :param x: X coordinate on the plane.
    :param y: Y coordinate on the plane.
    :param params: Current application parameters.
    :type params: params.Params
    :return: Tuple containing the re-mapped coordinates in Mandelbrot-space.
    """
    n_x = x * 2.0 / params.plane_w * params.plane_ratio - 1.0
    n_y = y * 2.0 / params.plane_h - 1.0
    mb_x = params.zoom * n_x
    mb_y = params.zoom * n_y
    return mb_x, mb_y
Transforms the given coordinates from plane-space to Mandelbrot-space (real and imaginary).

    :param x: X coordinate on the plane.
    :param y: Y coordinate on the plane.
    :param params: Current application parameters.
    :type params: params.Params
    :return: Tuple containing the re-mapped coordinates in Mandelbrot-space.