Class: G3000WeightBalanceUtils
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Performance/WeightBalance/G3000WeightBalanceUtils.ts:6
A utility class for working with G3000 weight and balance calculations.
Constructors
Constructor
new G3000WeightBalanceUtils():
G3000WeightBalanceUtils
Returns
G3000WeightBalanceUtils
Methods
getEnvelopeMaxArm()
static
getEnvelopeMaxArm(breakpoints
,weight
):number
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Performance/WeightBalance/G3000WeightBalanceUtils.ts:32
Gets the maximum moment arm, in inches, of an envelope for a given weight.
Parameters
Parameter | Type | Description |
---|---|---|
breakpoints | readonly readonly [number , number ][] | The breakpoints defining the envelope's maximum moment arm limits. Each breakpoint should be expressed as [arm (inches), weight (pounds)] , and the breakpoints should be ordered such that weight is monotonically increasing. The first breakpoint should be at the envelope's minimum weight, and the last breakpoint should be at the envelope's maximum weight. |
weight | number | The weight, in pounds, for which to get the maximum moment arm. |
Returns
number
The maximum moment arm, in inches, for the specified weight, or NaN
if the weight is below the minimum
envelope weight or above the maximum envelope weight.
getEnvelopeMinArm()
static
getEnvelopeMinArm(breakpoints
,weight
):number
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Performance/WeightBalance/G3000WeightBalanceUtils.ts:18
Gets the minimum moment arm, in inches, of an envelope for a given weight.
Parameters
Parameter | Type | Description |
---|---|---|
breakpoints | readonly readonly [number , number ][] | The breakpoints defining the envelope's minimum moment arm limits. Each breakpoint should be expressed as [arm (inches), weight (pounds)] , and the breakpoints should be ordered such that weight is monotonically increasing. The first breakpoint should be at the envelope's minimum weight, and the last breakpoint should be at the envelope's maximum weight. |
weight | number | The weight, in pounds, for which to get the minimum moment arm. |
Returns
number
The minimum moment arm, in inches, for the specified weight, or NaN
if the weight is below the minimum
envelope weight or above the maximum envelope weight.