calcPositionFromSize and calcPositionOrRandomFromSize functions.
Optional
the position to use for calculating the exact position
the size to use for calculating the position
calcPositionFromSize and calcPositionOrRandomFromSize functions.