I moved some dimension-related functions from GameLayer to Dimensions.