Calculate half-extent.