Class: VerticalSpeedUtils
Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/PFD/Components/VerticalSpeed/VerticalSpeedUtils.ts:4
Utilities for the vertical speed scale.
Constructors
Constructor
new VerticalSpeedUtils():
VerticalSpeedUtils
Returns
VerticalSpeedUtils
Properties
PX_PER_TICK
readonly
static
PX_PER_TICK:17
=17
Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/PFD/Components/VerticalSpeed/VerticalSpeedUtils.ts:8
Pixels per tick in the vertical axis.
RADIUS
readonly
static
RADIUS:102
=102
Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/PFD/Components/VerticalSpeed/VerticalSpeedUtils.ts:6
Radius of the arc swept by the needle in pixels.
Methods
calculateAngle()
static
calculateAngle(vs
,clamp?
):number
Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/PFD/Components/VerticalSpeed/VerticalSpeedUtils.ts:16
Gets the pointer rotation angle for a given VS.
Parameters
Parameter | Type | Description |
---|---|---|
vs | number | Vertical speed in feet/min. |
clamp? | number | Maximum vertical speed in feet/min, clamped in both directions, or undefined for no clamping. |
Returns
number
rotation angle in radians.
calculateY()
static
calculateY(xOffset
,vs
,clamp?
):number
Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/PFD/Components/VerticalSpeed/VerticalSpeedUtils.ts:30
Get the y offset in pixels for a given x offset.
Parameters
Parameter | Type | Description |
---|---|---|
xOffset | number | X offset in pixels from the arc centre point. |
vs | number | Vertical speed in feet/min. |
clamp? | number | Maximum vertical speed in feet/min, clamped in both directions, or undefined for no clamping. |
Returns
number
The y offset in pixels.