Struct egui_map::map::SystemPoint
source · pub struct SystemPoint {
pub coords: [f64; 3],
pub lines: Vec<[f64; 3]>,
pub id: usize,
pub name: String,
/* private fields */
}Expand description
Struct that contains coordinates to help calculate nearest point in space
Fields§
§coords: [f64; 3]coordinates of the Solar System
lines: Vec<[f64; 3]>coordinates for lines connecting this point
id: usizeObject Identifier for search propurses
name: StringSolarSystem Name
Implementations§
source§impl SystemPoint
impl SystemPoint
sourcepub fn new(id: usize, coords: Vec<f64>) -> SystemPoint
pub fn new(id: usize, coords: Vec<f64>) -> SystemPoint
Creates a new Spatial point with an Id (solarSystemId) and the system’s 3D coordinates
sourcepub fn get_dimension(self) -> usize
pub fn get_dimension(self) -> usize
Get the number of dimensions used in this object
Trait Implementations§
source§impl Clone for SystemPoint
impl Clone for SystemPoint
source§fn clone(&self) -> SystemPoint
fn clone(&self) -> SystemPoint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'de> Deserialize<'de> for SystemPoint
impl<'de> Deserialize<'de> for SystemPoint
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more