Struct base::prop::plant::Tree [] [src]

pub struct Tree {
    pub branches: Vec<Branch>,
    pub trunk_color: Vector3f,
    pub leaf_color: Vector3f,
}

Fields

branches: Vec<Branch>

The list of branches representing this tree.

trunk_color: Vector3f

Color for all trunks defined by is_trunk in Branch The vector holds elements in range 0..1 representing the RGB color channels.

leaf_color: Vector3f

Color for all remaining Branches The vector holds elements in range 0..1 representing the RGB color channels.

Trait Implementations

impl Debug for Tree
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Tree
[src]

fn clone(&self) -> Tree

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more