pub fn expand<F: Float>( scope: &Scope, val: <F as CubeType>::ExpandType, ) -> <F as CubeType>::ExpandType
Converts an angle from radians to degrees.
let radians = F::new(std::f32::consts::PI); let degrees = to_degrees(radians); assert!((degrees - F::new(180.0)).abs() < F::new(1e-6));