unwrap_2pi

Function unwrap_2pi 

Source
pub fn unwrap_2pi(phase: Smpl) -> Smpl
Expand description

Compute the principal argument

This function maps the input phase to its corresponding value wrapped in the range -π ..= π.

  • phase Unwrapped phase to map to the unit circle

Returns equivalent phase wrapped to the unit circle