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.
21 lines (20 loc) • 716 B
TypeScript
import { Pressure, MbarPressure, PartialPressures } from './types';
import { Depth } from './depth';
export declare class Gas {
private o2Pp;
private n2Pp;
private hePp;
constructor(o2Pp: Pressure, hePp: Pressure);
static air(): Gas;
get o2(): Pressure;
get n2(): Pressure;
get he(): Pressure;
id(): string;
partialPressures(depth: Depth, surfacePressure: MbarPressure): PartialPressures;
inspiredPartialPressures(depth: Depth, surfacePressure: MbarPressure): PartialPressures;
private gasPressuresCompound;
maxOperatingDepth(ppO2Limit: Pressure): Depth;
equivalentNarcoticDepth(depth: Depth): Depth;
toString(): string;
equals(other: Gas): boolean;
}