Skip to main content

sine_diff

Function sine_diff 

Source
pub fn sine_diff<T: Float>(
    sin_a: UnitNegRange<T>,
    cos_a: UnitNegRange<T>,
    sin_b: UnitNegRange<T>,
    cos_b: UnitNegRange<T>,
) -> UnitNegRange<T>
Expand description

Calculate the sine of the difference of two angles: a - b.

See: angle sum and difference identities.

  • sin_a, cos_a the sine and cosine of angle a.
  • sin_b, cos_b the sine and cosine of angle b.

return sin(a - b)