RESCALE_SUBRECT-resizearectanglewithinalargerrectangleaccordingtoascaleandshift[NEWRECT]=vlt.math.rescale_subrect(SUBRECT,ORIGINAL_RECT,SCALED_RECT,[FORMAT])ThisfunctionrescalesarectangleSUBRECT,whosecoordinatesarelocatedwithrespecttoORIGINAL_RECT.ThesametransformationthatwouldberequiredtoscaleandshiftORIGINAL_RECTtoSCALED_RECTisappliedtoSUBRECT,andreturnedinNEWRECT.FORMATisanoptionalargumentthatspecifiestheformatoftherectangles.FORMAT==1(default)means[left top right bottom]FORMAT==2means[left bottom right top]FORMAT==3means[left bottom width height]FORMAT==4means[left top width height]Seealso:vlt.math.rescale,vlt.math.rect2rect