Skip to content

Documentation / @interstellar-tools/types / SpeedInterface

Interface: SpeedInterface ​

Defined in: quantities.ts:92

A scalar speed with its unit: an escape speed, a radial-velocity semi-amplitude, a galaxy's rotation speed. For a velocity in 3D, see VelocityInterface.

Example ​

ts
const earthEscape: SpeedInterface = { value: 11.186, unit: 'km/s' };

Extends ​

Properties ​

unit ​

ts
unit: SpeedUnitType;

Defined in: quantities.ts:93


value ​

ts
value: number;

Defined in: numeric.ts:18

The numeric value of the measurement.

Inherited from ​

ValueInterface.value