dive-deco
Version:
A TypeScript implementation of decompression calculation algorithms for scuba diving, featuring Bühlmann ZH-L16C algorithm with gradient factors, gas management, and oxygen toxicity tracking.
27 lines (26 loc) • 884 B
TypeScript
import { Units, DepthType } from './types';
export declare class Depth {
private m;
constructor(meters?: DepthType);
static zero(): Depth;
static fromMeters(val: DepthType): Depth;
static fromFeet(val: DepthType): Depth;
static fromUnits(val: DepthType, units: Units): Depth;
asMeters(): DepthType;
asFeet(): DepthType;
toUnits(units: Units): DepthType;
baseUnit(): DepthType;
add(other: Depth): Depth;
subtract(other: Depth): Depth;
multiply(other: Depth | number): Depth;
divide(other: Depth | number): Depth;
addAssign(other: Depth): void;
equals(other: Depth): boolean;
lessThan(other: Depth): boolean;
lessThanOrEqual(other: Depth): boolean;
greaterThan(other: Depth): boolean;
greaterThanOrEqual(other: Depth): boolean;
toString(): string;
private static mToFt;
private static ftToM;
}