The transformation and interpolation is done by MARS using a library called MIR. More information here:
MARS interpolation with MIR