<s> from math import ceil <EOL> def get_transformed_dimensions ( transform , box ) : <EOL> """<STR_LIT>""" <EOL> ( x0 , y0 , x1 , y1 ) = box <EOL> xs = [ ] <EOL> ys = [ ] <EOL> for corner in ( <EOL> ( x0 , y0 ) , <EOL> ( x1 , y0 ) , <EOL> ( x0 , y1 ) , <EOL> ( x1 , y1 ) , <EOL> ) : <EOL> x , y = transform * corner <EOL> xs . append ( x ) <EOL> ys . append ( y ) <EOL> return int ( ceil ( max ( xs ) ) ) - int ( min ( xs ) ) , int ( ceil ( max ( ys ) ) ) - int ( min ( ys ) ) </s>
