Skip to main content

scalar_for

Function scalar_for 

Source
pub(crate) fn scalar_for(
    peak: &Tuple<'_>,
    intermediate: Option<(Tuple<'_>, Tuple<'_>)>,
    coords: &[F2Dot14],
) -> Option<Fixed>
Expand description

Computes the scalar for a peak at coords, interpolating over the tuple’s range if it states one.

None where the tuple does not apply, which a scalar of zero also expresses.