In geometry , the radius of a circle or sphere is the shortest connection between the center and the boundary . It is half of the diameter . By extension , the radius of a circle or sphere is the length of any such segment , which is half the diameter .