pub struct Terrain {
pub ridge: (f64, f64),
pub trees: Option<(f64, f64)>,
pub gap: (f64, f64),
pub clearing: f64,
}Expand description
What stands on the horizon: a far ridge and, optionally, a conifer forest. Heights are in degrees above the horizon, so the land keeps its shape at every size.
Fields§
§ridge: (f64, f64)Ridge base and relief (deg): base + relief · noise.
trees: Option<(f64, f64)>Tree heights (deg), or None for bare hills.
gap: (f64, f64)Gap between neighbouring spires (deg).
clearing: f64Chance that a stretch of forest is a clearing.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Terrain
impl Freeze for Terrain
impl Move for Terrain
impl RefUnwindSafe for Terrain
impl Send for Terrain
impl Sync for Terrain
impl Unpin for Terrain
impl UnsafeUnpin for Terrain
impl UnwindSafe for Terrain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more