Coord

Struct Coord 

Source
pub struct Coord { /* private fields */ }

Implementations§

Source§

impl<'a> Coord

Source

pub fn from_bytes(data: &'a [u8]) -> &'a Self

Source

pub fn from_slice(data: &[f64]) -> &Self

Source

pub fn from_slice_mut(data: &mut [f64]) -> &mut Self

Source

pub fn lng(&self) -> f64

Source

pub fn lng_mut(&mut self) -> &mut f64

Source

pub fn lat(&self) -> f64

Source

pub fn lat_mut(&mut self) -> &mut f64

Source

pub fn x(&self) -> f64

Source

pub fn y(&self) -> f64

Source

pub fn to_geo(&self) -> Coord<f64>

Trait Implementations§

Source§

impl Debug for Coord

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl RelationBetweenShapes<Coord> for BoundingBox

Source§

fn relation(&self, other: &Coord, relation: InputRelation) -> OutputRelation

Source§

fn all_relation(&self, other: &Other) -> OutputRelation

Source§

fn any_relation(&self, other: &Other) -> OutputRelation

Source§

fn contains(&self, other: &Other) -> bool

Source§

fn strict_contains(&self, other: &Other) -> bool

Source§

fn contained(&self, other: &Other) -> bool

Source§

fn strict_contained(&self, other: &Other) -> bool

Source§

fn intersects(&self, other: &Other) -> bool

Source§

fn disjoint(&self, other: &Other) -> bool

Source§

impl<'a> RelationBetweenShapes<Coord> for Zolygon<'a>

Source§

fn relation(&self, other: &Coord, relation: InputRelation) -> OutputRelation

Source§

fn all_relation(&self, other: &Other) -> OutputRelation

Source§

fn any_relation(&self, other: &Other) -> OutputRelation

Source§

fn contains(&self, other: &Other) -> bool

Source§

fn strict_contains(&self, other: &Other) -> bool

Source§

fn contained(&self, other: &Other) -> bool

Source§

fn strict_contained(&self, other: &Other) -> bool

Source§

fn intersects(&self, other: &Other) -> bool

Source§

fn disjoint(&self, other: &Other) -> bool

Auto Trait Implementations§

§

impl Freeze for Coord

§

impl RefUnwindSafe for Coord

§

impl Send for Coord

§

impl !Sized for Coord

§

impl Sync for Coord

§

impl Unpin for Coord

§

impl UnwindSafe for Coord

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more