pub struct CubeSpherePoint<const S: usize> { /* private fields */ }
Expand description
Trait Implementations§
Source§impl<const S: usize> Clone for CubeSpherePoint<S>
impl<const S: usize> Clone for CubeSpherePoint<S>
Source§fn clone(&self) -> CubeSpherePoint<S>
fn clone(&self) -> CubeSpherePoint<S>
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<const S: usize> Debug for CubeSpherePoint<S>
impl<const S: usize> Debug for CubeSpherePoint<S>
Source§impl<const S: usize> GridPoint for CubeSpherePoint<S>
impl<const S: usize> GridPoint for CubeSpherePoint<S>
Source§impl<const S: usize> Hash for CubeSpherePoint<S>
impl<const S: usize> Hash for CubeSpherePoint<S>
Source§impl<T, const S: usize> Index<CubeSpherePoint<S>> for CubeSphereGrid<T, S>
impl<T, const S: usize> Index<CubeSpherePoint<S>> for CubeSphereGrid<T, S>
Source§impl<T, const S: usize> IndexMut<CubeSpherePoint<S>> for CubeSphereGrid<T, S>
impl<T, const S: usize> IndexMut<CubeSpherePoint<S>> for CubeSphereGrid<T, S>
Source§impl<const S: usize> PartialEq for CubeSpherePoint<S>
impl<const S: usize> PartialEq for CubeSpherePoint<S>
Source§impl<const S: usize> SpherePoint for CubeSpherePoint<S>
impl<const S: usize> SpherePoint for CubeSpherePoint<S>
Source§fn from_geographic(latitude: f64, longitude: f64) -> Self
fn from_geographic(latitude: f64, longitude: f64) -> Self
Gets a sphere point for the specified geographic coordinates. Read more
Source§fn sphere_coordinates(&self) -> (f64, f64)
fn sphere_coordinates(&self) -> (f64, f64)
Returns a coordinate containing the latitude and longitude of this point.
This returns a point with the X component being the longitude and the Y component being the
latitude.
impl<const S: usize> Copy for CubeSpherePoint<S>
impl<const S: usize> Eq for CubeSpherePoint<S>
impl<const S: usize> StructuralPartialEq for CubeSpherePoint<S>
Auto Trait Implementations§
impl<const S: usize> Freeze for CubeSpherePoint<S>
impl<const S: usize> RefUnwindSafe for CubeSpherePoint<S>
impl<const S: usize> Send for CubeSpherePoint<S>
impl<const S: usize> Sync for CubeSpherePoint<S>
impl<const S: usize> Unpin for CubeSpherePoint<S>
impl<const S: usize> UnwindSafe for CubeSpherePoint<S>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more