export type CapsuleShapeArgs = { /** * - The height, caps included, as a multiple of the radius. */ height?: number; }; /** * @import { ShapeArgs } from './shape.js' * @import { GraphicsDevice } from '../../../platform/graphics/graphics-device.js' */ /** * @typedef {object} CapsuleShapeArgs * @property {number} [height] - The height, caps included, as a multiple of the radius. */ /** * A capsule along the y axis with a radius of 1, its height a multiple of the radius, so a uniform * scale sets its radius. * * @ignore */ export class CapsuleShape extends Shape { /** * Create a new CapsuleShape. * * @param {GraphicsDevice} device - The graphics device. * @param {ShapeArgs & CapsuleShapeArgs} args - The shape options. */ constructor(device: GraphicsDevice, args?: ShapeArgs & CapsuleShapeArgs); /** * The height, as a multiple of the radius. * * @private */ private _height; /** * Create the capsule geometry. * * @returns {CapsuleGeometry} The capsule geometry. * @private */ private _createGeometry; /** * Create the capsule mesh. * * @returns {Mesh} The capsule mesh. * @private */ private _createMesh; /** * Set the height, caps included, as a multiple of the radius. * * @type {number} */ set height(value: number); /** * Get the height, as a multiple of the radius. * * @type {number} */ get height(): number; } import { Shape } from './shape.js'; import type { GraphicsDevice } from '../../../platform/graphics/graphics-device.js'; import type { ShapeArgs } from './shape.js';