A capsule is a term coined here for a stadium of revolution, i.e., a cylinder with two hemispherical caps on either end.
The capsule is implemented in the Wolfram Language as CapsuleShape[{{x1, y1, z1}, {x2, y2, z2}}, r].
A capsule with cap radius
and cylinder height
has volume
and surface area