Capsule

constructor(axis: LinAxis, halfHeight: Double, radius: Double)

Parameters

axis

The axis in which the half-height stretches.

halfHeight

The half-height of the capsule, up to the start of the hemisphere "caps" of the capsule. If this were 0 (which is invalid), the shape would be a sphere defined by radius. Must be greater than 0.

radius

The radius of the hemisphere caps of the capsule. Must be greater than 0.