def _build_relative_position_masks(dimensions: int) -> list[str]:
    """Create the masks for identifying the different points used in
    an n-dimensional interpolation.
    """
    points = range(2 ** dimensions)
    mask_template = '{:>0' + str(dimensions) + 'b}'
    mask = [mask_template.format(p)[::-1] for p in points]
    return sorted(mask)