def METHOD_NAME(self, resolution=None, wavelength=None):
    """Convert resolution to distance.
    Args:
        resolution(float): Resolution [Å]. Defaults to nominal value
        wavelength (float): Wavelength [Å] (defaults to current wavelength)
    Returns:
        (float): distance [mm].
    """
    resolution = resolution or self._nominal_value
    wavelength = wavelength or HWR.beamline.energy.get_wavelength()
    try:
        distance = self._hwr_detector.get_radius() / (
            tan(2 * asin(wavelength / (2 * resolution)))
        )
        return round(
            self._hwr_detector.get_radius(distance)
            / (tan(2 * asin(wavelength / (2 * resolution)))),
            2,
        )
    except (KeyError, ZeroDivisionError):
        return None