pub struct SourceCoordinateSystem { /* private fields */ }Expand description
One source’s coordinate system, as far as the source states it.
Implementations§
Source§impl SourceCoordinateSystem
impl SourceCoordinateSystem
Sourcepub fn try_new(
source: SourceId,
world: Option<CoordinateFrame>,
true_north: Option<[f64; 2]>,
map: Option<MapConversion>,
evidence: Evidence,
) -> Result<Self, CoordinateSystemError>
pub fn try_new( source: SourceId, world: Option<CoordinateFrame>, true_north: Option<[f64; 2]>, map: Option<MapConversion>, evidence: Evidence, ) -> Result<Self, CoordinateSystemError>
The coordinate system of source.
true_north is a plan direction and is normalized. The evidence must
be exact, reviewable and from source: a coordinate system is stated,
never estimated.
Sourcepub fn world(&self) -> Option<&CoordinateFrame>
pub fn world(&self) -> Option<&CoordinateFrame>
The frame the source’s coordinates are stated in, when stated.
Sourcepub fn true_north(&self) -> Option<[f64; 2]>
pub fn true_north(&self) -> Option<[f64; 2]>
Unit plan direction of true north, when stated.
Sourcepub fn map(&self) -> Option<&MapConversion>
pub fn map(&self) -> Option<&MapConversion>
The map conversion, when the source is georeferenced.
Trait Implementations§
Source§impl Clone for SourceCoordinateSystem
impl Clone for SourceCoordinateSystem
Source§impl Debug for SourceCoordinateSystem
impl Debug for SourceCoordinateSystem
Source§impl PartialEq for SourceCoordinateSystem
impl PartialEq for SourceCoordinateSystem
impl StructuralPartialEq for SourceCoordinateSystem
Auto Trait Implementations§
impl Freeze for SourceCoordinateSystem
impl RefUnwindSafe for SourceCoordinateSystem
impl Send for SourceCoordinateSystem
impl Sync for SourceCoordinateSystem
impl Unpin for SourceCoordinateSystem
impl UnsafeUnpin for SourceCoordinateSystem
impl UnwindSafe for SourceCoordinateSystem
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