Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Capsule

A shape that is a capsule. A shape that is a capsule.

Hierarchy

  • Capsule

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Capsule(halfHeight: number, radius: number): Capsule
  • new Capsule(halfHeight: number, radius: number): Capsule
  • Creates a new capsule with the given radius and half-height.

    Parameters

    • halfHeight: number

      The balls half-height along the y axis.

    • radius: number

      The balls radius.

    Returns Capsule

  • Creates a new capsule with the given radius and half-height.

    Parameters

    • halfHeight: number

      The balls half-height along the y axis.

    • radius: number

      The balls radius.

    Returns Capsule

Properties

Readonly halfHeight

halfHeight: number

The capsule's half height, along the y axis. The capsule's half height, along the y axis.

Readonly radius

radius: number

The radius of the capsule's basis. The radius of the capsule's basis.

Methods

intoRaw

  • intoRaw(): RawShape
  • intoRaw(): RawShape
  • Returns RawShape

  • Returns RawShape

Generated using TypeDoc