ambientcg 0.2.2

Rust interface around the ambientCG v2 web API
Documentation
1
2
3
4
5
6
pub fn non_zero_f32(input: Option<f32>) -> Option<f32> {
    match &input {
        Some(num) => if *num == 0.0 { None } else { Some(*num) }
        None => None
    }
}