Skip to main content

find_wrap

Function find_wrap 

Source
fn find_wrap(phase_a: f64, phase_b: f64) -> i8
Expand description

Number of 2π that separates two wrapped phases, as the reference’s find_wrap.

The returned w satisfies phase_b + 2π·(-w) ≈ phase_a in the sense that the residual difference lies in [-π, π].