Two dimensions, so X * X
For volume, the change in size is the cube of the old:new ratio.
Three dimensions, so X * X * X