fn gen_branch_direction<R: Rng>(&self, rng: &mut R, parent_dir: Vector3f) -> Vector3f {
        // `branch_angle_deg` specifies the angle range in degrees
        let angle = range_sample(&self.preset.branch_angle_deg, rng);

        random_vec_with_angle(rng, parent_dir, angle)
    }
/// Given the growing direction of the parent branch, calculates a growing
/// direction to use for a new child branch.
Given the growing direction of the parent branch, calculates a growing
direction to use for a new child branch.
Given the growing direction of the parent branch calculates a growing direction to use for a new child branch .
fn gen_branch_direction<R: Rng>(&self, rng: &mut R, parent_dir: Vector3f) -> Vector3f {
        // `branch_angle_deg` specifies the angle range in degrees
        let angle = range_sample(&self.preset.branch_angle_deg, rng);
        random_vec_with_angle(rng, parent_dir, angle)
    }
fn gen_branch_direction < R : Rng > ( & self , rng : & mut R , parent_dir : Vector3f ) -> Vector3f { // `branch_angle_deg` specifies the angle range in degrees let angle = range_sample ( & self . preset . branch_angle_deg , rng ) ; random_vec_with_angle ( rng , parent_dir , angle ) }
Given the growing direction of the parent branch, calculates a growing
direction to use for a new child branch.
Given the growing direction of the parent branch calculates a growing direction to use for a new child branch .
&self
rng
&mut R
parent_dir
Vector3f