dive-math / deco / replaySegments
Function: replaySegments()
replaySegments(
segments,startTissues?,opts?):Tissues[]
Defined in: deco/profile.ts:18
Tissue state after each segment, in order. Starts from startTissues (default: saturated with surface air).
Parameters
segments
readonly Segment[]
startTissues?
opts?
Returns
Tissues[]
Example
ts
replaySegments([{ fromDepthM: 0, toDepthM: 30, minutes: 1.5, breathing: { kind: 'oc', gas: AIR } }]).length // 1