Skip to main content

cliff_angle

Function cliff_angle 

Source
pub fn cliff_angle(value: f64) -> Option<u8>
Expand description

Compute the Clifford angle in quarter turns for a half-turn input value.

§Arguments

  • value (f64) - The half-turn value.

§Returns

  • Option<u8> - The Clifford angle is expressed as a number of quarter turns (0, 1, 2, 3) if the value is a valid Clifford angle, otherwise None.