constructor(radius=1,length=1,capSegments=4,radialSegments=8){const path=new Path();path.absarc(0,-length/2,radius,Math.PI*1.5,0);path.absarc(0,length/2,radius,0,Math.PI*0.5);super(path.getPoints(capSegments),radialSegments);this.type='CapsuleGeometry';/**
		 * Holds the constructor parameters that have been
		 * used to generate the geometry. Any modification
		 * after instantiation does not change the geometry.
		 *
		 * @type {Object}
		 */this.parameters={radius:radius,length:length,capSegments:capSegments,radialSegments:radialSegments};}
Constructs a new capsule geometry.

@param {number} [radius=1] - Radius of the capsule.
@param {number} [length=1] - Length of the middle section.
@param {number} [capSegments=4] - Number of curve segments used to build the caps.
@param {number} [radialSegments=8] - Number of segmented faces around the circumference of the capsule.