Application of sampling techniques to near-field far-field transformation