pub struct SystemPoint {
pub id: SystemId,
pub point: [f64; 3],
}Expand description
A system’s position in 3D voxel space, stored in the R-tree.
Fields§
§id: SystemId§point: [f64; 3]Implementations§
Source§impl SystemPoint
impl SystemPoint
pub fn new(id: SystemId, x: f64, y: f64, z: f64) -> Self
Sourcepub fn from_address(addr: &GalacticAddress) -> Self
pub fn from_address(addr: &GalacticAddress) -> Self
Create from a GalacticAddress.
Trait Implementations§
Source§impl Clone for SystemPoint
impl Clone for SystemPoint
Source§fn clone(&self) -> SystemPoint
fn clone(&self) -> SystemPoint
Returns a duplicate 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 Debug for SystemPoint
impl Debug for SystemPoint
Source§impl PartialEq for SystemPoint
impl PartialEq for SystemPoint
Source§impl PointDistance for SystemPoint
impl PointDistance for SystemPoint
Source§fn distance_2(&self, point: &[f64; 3]) -> f64
fn distance_2(&self, point: &[f64; 3]) -> f64
Returns the squared distance between an object and a point. Read more
Source§fn contains_point(&self, point: &<Self::Envelope as Envelope>::Point) -> bool
fn contains_point(&self, point: &<Self::Envelope as Envelope>::Point) -> bool
Returns
true if a point is contained within this object. Read moreSource§fn distance_2_if_less_or_equal(
&self,
point: &<Self::Envelope as Envelope>::Point,
max_distance_2: <<Self::Envelope as Envelope>::Point as Point>::Scalar,
) -> Option<<<Self::Envelope as Envelope>::Point as Point>::Scalar>
fn distance_2_if_less_or_equal( &self, point: &<Self::Envelope as Envelope>::Point, max_distance_2: <<Self::Envelope as Envelope>::Point as Point>::Scalar, ) -> Option<<<Self::Envelope as Envelope>::Point as Point>::Scalar>
Returns the squared distance to this object, or
None if the distance
is larger than a given maximum value. Read moreSource§impl RTreeObject for SystemPoint
impl RTreeObject for SystemPoint
impl Copy for SystemPoint
impl StructuralPartialEq for SystemPoint
Auto Trait Implementations§
impl Freeze for SystemPoint
impl RefUnwindSafe for SystemPoint
impl Send for SystemPoint
impl Sync for SystemPoint
impl Unpin for SystemPoint
impl UnsafeUnpin for SystemPoint
impl UnwindSafe for SystemPoint
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