Struct planetkit::globe::Spec
[−]
[src]
pub struct Spec { pub seed: u32, pub floor_radius: f64, pub ocean_radius: f64, pub block_height: f64, pub root_resolution: [GridCoord; 2], pub chunk_resolution: [GridCoord; 3], }
Fields
seed: u32
floor_radius: f64
ocean_radius: f64
block_height: f64
root_resolution: [GridCoord; 2]
chunk_resolution: [GridCoord; 3]
Methods
impl Spec
[src]
fn new_earth_scale_example() -> Spec
[src]
fn is_valid(&self) -> bool
[src]
fn chunks_per_root_side(&self) -> [GridCoord; 2]
[src]
fn cell_center_on_unit_sphere(&self, column: GridPoint2) -> Pt3
[src]
fn cell_center_center(&self, grid_point: GridPoint3) -> Pt3
[src]
fn cell_bottom_center(&self, grid_point: GridPoint3) -> Pt3
[src]
fn cell_vertex_on_unit_sphere(
&self,
grid_point: GridPoint3,
offset: [i64; 2]
) -> Pt3
[src]
&self,
grid_point: GridPoint3,
offset: [i64; 2]
) -> Pt3
fn cell_bottom_vertex(&self, grid_point: GridPoint3, offset: [i64; 2]) -> Pt3
[src]
fn cell_top_vertex(&self, grid_point: GridPoint3, offset: [i64; 2]) -> Pt3
[src]
fn approx_cell_z_from_radius(&self, radius: f64) -> GridCoord
[src]
Trait Implementations
impl Clone for Spec
[src]
fn clone(&self) -> Spec
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more