fern_sim: Updated.
parent
002cb75b78
commit
bdd175151c
@ -1,12 +0,0 @@
|
|||||||
//! The simulation of biological cells, which is as low-level as we go.
|
|
||||||
|
|
||||||
pub struct Cell {
|
|
||||||
x: f64,
|
|
||||||
y: f64
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Cell {
|
|
||||||
pub fn distance_from_origin(&self) -> f64 {
|
|
||||||
f64::hypot(self.x, self.y)
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,7 +1,7 @@
|
|||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
|
||||||
pub struct Root {
|
pub struct Root {
|
||||||
x: bool
|
pub x: bool
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type RootSet = Vec<Root>;
|
pub type RootSet = Vec<Root>;
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
//! Structures for distributing the products of photosynthesis.
|
||||||
|
|
||||||
|
/// Tissue for translocating sucrose and other photosynthesis products.
|
||||||
|
pub struct Phloem {
|
||||||
|
pub flow_rate: f32,
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
//! Structures for bringing nutrients from roots up to other parts of the plant.
|
||||||
|
|
||||||
|
/// Vascular tissue for transporting water and nutrients from the roots.
|
||||||
|
pub struct Xylem {
|
||||||
|
pub flow_rate: f32,
|
||||||
|
}
|
Loading…
Reference in New Issue