pub struct Coord { /* private fields */ }Expand description
Represent a coordinate. The first float is the longitude, or x, and the second is the latitude, or y.
Implementations§
Source§impl<'a> Coord
impl<'a> Coord
Sourcepub unsafe fn from_bytes(data: &'a [u8]) -> &'a Self
pub unsafe fn from_bytes(data: &'a [u8]) -> &'a Self
§Safety
The data must be aligned on 64 bits and contain an two number of f64.
Sourcepub unsafe fn from_slice(data: &[f64]) -> &Self
pub unsafe fn from_slice(data: &[f64]) -> &Self
§Safety
The data must contain two f64.
Sourcepub unsafe fn from_slice_mut(data: &mut [f64]) -> &mut Self
pub unsafe fn from_slice_mut(data: &mut [f64]) -> &mut Self
§Safety
The data must be aligned on 64 bits and contain an even number of f64.
Trait Implementations§
Source§impl RelationBetweenShapes<Coord> for BoundingBox
impl RelationBetweenShapes<Coord> for BoundingBox
Source§fn relation(&self, other: &Coord, relation: InputRelation) -> OutputRelation
fn relation(&self, other: &Coord, relation: InputRelation) -> OutputRelation
Return the relation between two shapes.
The
InputRelation lets you specify the kind of relation you want to retrieve. Read moreSource§fn all_relation(&self, other: &Other) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
Return all relations with no early return.
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Return the first relation we find with early return.
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
Return
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
Return
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
Return
true if Self intersects with Other.Source§impl<'a> RelationBetweenShapes<Coord> for Zolygon<'a>
impl<'a> RelationBetweenShapes<Coord> for Zolygon<'a>
Source§fn relation(&self, other: &Coord, relation: InputRelation) -> OutputRelation
fn relation(&self, other: &Coord, relation: InputRelation) -> OutputRelation
Return the relation between two shapes.
The
InputRelation lets you specify the kind of relation you want to retrieve. Read moreSource§fn all_relation(&self, other: &Other) -> OutputRelation
fn all_relation(&self, other: &Other) -> OutputRelation
Return all relations with no early return.
Source§fn any_relation(&self, other: &Other) -> OutputRelation
fn any_relation(&self, other: &Other) -> OutputRelation
Return the first relation we find with early return.
Source§fn strict_contains(&self, other: &Other) -> bool
fn strict_contains(&self, other: &Other) -> bool
Return
true if Self strictly contains Other.Source§fn strict_contained(&self, other: &Other) -> bool
fn strict_contained(&self, other: &Other) -> bool
Return
true if Self is strictly contained in Other.Source§fn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
Return
true if Self intersects with Other.