pub struct RectangleSpherePoint<const W: usize, const H: usize> { /* private fields */ }
Expand description
A point on a RectangleSphereGrid
.
§Constant Parameters
W
- The width of the grid.H
- The height of the grid.
Trait Implementations§
Source§impl<const W: usize, const H: usize> Clone for RectangleSpherePoint<W, H>
impl<const W: usize, const H: usize> Clone for RectangleSpherePoint<W, H>
Source§fn clone(&self) -> RectangleSpherePoint<W, H>
fn clone(&self) -> RectangleSpherePoint<W, H>
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<T, const W: usize, const H: usize> Index<RectangleSpherePoint<W, H>> for RectangleSphereGrid<T, W, H>
impl<T, const W: usize, const H: usize> Index<RectangleSpherePoint<W, H>> for RectangleSphereGrid<T, W, H>
Source§impl<T, const W: usize, const H: usize> IndexMut<RectangleSpherePoint<W, H>> for RectangleSphereGrid<T, W, H>
impl<T, const W: usize, const H: usize> IndexMut<RectangleSpherePoint<W, H>> for RectangleSphereGrid<T, W, H>
Source§impl<const W: usize, const H: usize> SpherePoint for RectangleSpherePoint<W, H>
impl<const W: usize, const H: usize> SpherePoint for RectangleSpherePoint<W, H>
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 W: usize, const H: usize> Copy for RectangleSpherePoint<W, H>
impl<const W: usize, const H: usize> Eq for RectangleSpherePoint<W, H>
impl<const W: usize, const H: usize> StructuralPartialEq for RectangleSpherePoint<W, H>
Auto Trait Implementations§
impl<const W: usize, const H: usize> Freeze for RectangleSpherePoint<W, H>
impl<const W: usize, const H: usize> RefUnwindSafe for RectangleSpherePoint<W, H>
impl<const W: usize, const H: usize> Send for RectangleSpherePoint<W, H>
impl<const W: usize, const H: usize> Sync for RectangleSpherePoint<W, H>
impl<const W: usize, const H: usize> Unpin for RectangleSpherePoint<W, H>
impl<const W: usize, const H: usize> UnwindSafe for RectangleSpherePoint<W, H>
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