Skip to main content

Class: AdiProjectionUtils

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/PFD/Utils/AdiProjectionUtils.ts:6

Projection utils for the SVT

Constructors​

Constructor​

new AdiProjectionUtils(): AdiProjectionUtils

Returns​

AdiProjectionUtils

Methods​

getPxPerDegY()​

static getPxPerDegY(): number

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/PFD/Utils/AdiProjectionUtils.ts:65

Gets the y pixels per degree

Returns​

number

px per degree


project()​

static project(x, y, z, out): Float64Array

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/PFD/Utils/AdiProjectionUtils.ts:18

Projects vector3 to screen FoV.

Parameters​

ParameterTypeDescription
xnumberthe x value
ynumberthe y value
znumberthe z value
outFloat64ArrayThe vector to which to write the results.

Returns​

Float64Array

The projected vector.


projectYawPitch()​

static projectYawPitch(yaw, pitch, roll, out): Float64Array

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/PFD/Utils/AdiProjectionUtils.ts:34

Relative yaw/pitch to plane, both in radians

Parameters​

ParameterTypeDescription
yawnumberYaw in radians
pitchnumberPitch in radians
rollnumberRoll in radians
outFloat64ArrayThe vector to which to write the results.

Returns​

Float64Array

projected vector with yaw/pitch