Documentation / @interstellar-tools/types / DistanceInterface
Interface: DistanceInterface
Defined in: distance.ts:171
Represents a distance measurement with an associated unit.
Example
ts
const distanceToAlphaCentauri: DistanceInterface = { value: 4.367, unit: 'ly' };Extends
Properties
unit
ts
unit: DistanceUnitType;Defined in: distance.ts:172
The unit of distance measurement.
value
ts
value: number;Defined in: numeric.ts:18
The numeric value of the measurement.