Skip to main content

displace

Function displace 

Source
pub fn displace(path: &mut [[f32; 3]], a: usize, b: usize, rng: &mut Random)
Expand description

Bend a line by midpoint displacement: the point midway between a and b moves off the line, to its left, by a random amount up to a quarter of their distance; then each half is bent the same way.

Original: FUN_1400592e0(path, a, b).