#[non_exhaustive]pub struct GeodesicDirect {
pub latitude_rad: f64,
pub longitude_rad: f64,
pub final_azimuth_rad: f64,
}Expand description
The end of a geodesic from a start, an azimuth and a distance: Karney’s direct problem.
The end has no height: the geodesic lies on the ellipsoid’s surface. GeodesicDirect::end
makes a position of it at a height the caller chooses.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.latitude_rad: f64The end’s geodetic latitude, rad, in [−π/2, π/2].
longitude_rad: f64The end’s longitude, rad, in [−π, π].
final_azimuth_rad: f64Azimuth α₂ arriving at the end, rad, clockwise from north, in [−π, π].
Implementations§
Source§impl GeodesicDirect
impl GeodesicDirect
Sourcepub fn end(&self, height_m: f64) -> Result<Geodetic, CoreError>
pub fn end(&self, height_m: f64) -> Result<Geodetic, CoreError>
The end as a position at ellipsoidal height height_m.
§Errors
As Geodetic::new: CoreError::Domain if the height is not finite.
Trait Implementations§
Source§impl Clone for GeodesicDirect
impl Clone for GeodesicDirect
Source§fn clone(&self) -> GeodesicDirect
fn clone(&self) -> GeodesicDirect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GeodesicDirect
Source§impl Debug for GeodesicDirect
impl Debug for GeodesicDirect
Source§impl<'de> Deserialize<'de> for GeodesicDirect
impl<'de> Deserialize<'de> for GeodesicDirect
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
Source§impl PartialEq for GeodesicDirect
impl PartialEq for GeodesicDirect
Source§fn eq(&self, other: &GeodesicDirect) -> bool
fn eq(&self, other: &GeodesicDirect) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GeodesicDirect
impl Serialize for GeodesicDirect
impl StructuralPartialEq for GeodesicDirect
Auto Trait Implementations§
impl Freeze for GeodesicDirect
impl RefUnwindSafe for GeodesicDirect
impl Send for GeodesicDirect
impl Sync for GeodesicDirect
impl Unpin for GeodesicDirect
impl UnsafeUnpin for GeodesicDirect
impl UnwindSafe for GeodesicDirect
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