from typing import Tuple


def transform_rc(row: int, col: int, affine: tuple) -> Tuple[int, int]:
    """
    Perform the affine transformation from a row/col coordinate to projected x/y
    space.

    Args:
        row: pixel/array row number
        col: pixel/array column number
        affine: gdal GeoTransform tuple

    Returns:
        x/y coordinate
    """
    x = affine[0] + col * affine[1] + row * affine[2]
    y = affine[3] + col * affine[4] + row * affine[5]

    return x, y