Skip to main content

expand

Function expand 

Source
pub fn expand<F: Float>(
    scope: &Scope,
    val: <F as CubeType>::ExpandType,
) -> <F as CubeType>::ExpandType
Expand description

Converts an angle from radians to degrees.

§Example

ⓘ
let radians = F::new(std::f32::consts::PI);
let degrees = to_degrees(radians);
assert!((degrees - F::new(180.0)).abs() < F::new(1e-6));