fn segment_dist(segment_length: f32, segment_length2: f32, diameter: f32, depth: u16) -> f32 {
    if depth < 2 {
        diameter * segment_length
    } else {
        diameter * segment_length2
    }
}
/// Approximation of real-world distance of branch segments, depending on the
/// starting branch diameter.
Approximation of real-world distance of branch segments, depending on the
starting branch diameter.
Approximation of real - world distance of branch segments depending on the starting branch diameter .
fn segment_dist(segment_length: f32, segment_length2: f32, diameter: f32, depth: u16) -> f32 {
    if depth < 2 {
        diameter * segment_length
    } else {
        diameter * segment_length2
    }
}
fn segment_dist ( segment_length : f32 , segment_length2 : f32 , diameter : f32 , depth : u16 ) -> f32 { if depth < 2 { diameter * segment_length } else { diameter * segment_length2 } }
Approximation of real-world distance of branch segments, depending on the
starting branch diameter.
Approximation of real - world distance of branch segments depending on the starting branch diameter .
segment_length
f32
segment_length2
f32
diameter
f32
depth
u16