Skip to content

five-on-it / apps/client/src/renderer/heli-view / drawnHeight

Function: drawnHeight() ​

drawnHeight(y, ceiling, floor): number

Defined in: apps/client/src/renderer/heli-view.ts:168

The height a helicopter truly at y is drawn at: no higher than ceiling (the camera's, see the module documentation), but never lower than four metres over floor (what is under it) on the way, nor ever higher than it is.

Parameters ​

y ​

number

ceiling ​

number

floor ​

number

Returns ​

number