pub struct VertexDist {
pub x: f64,
pub y: f64,
pub dist: f64,
}Expand description
A vertex with coordinates and the distance to the next vertex.
Port of C++ vertex_dist.
The calc_dist method computes the distance to another vertex_dist
and returns true if the distance exceeds VERTEX_DIST_EPSILON
(i.e., the vertices are not coincident).
Fields§
§x: f64§y: f64§dist: f64Implementations§
Trait Implementations§
Source§impl Clone for VertexDist
impl Clone for VertexDist
Source§fn clone(&self) -> VertexDist
fn clone(&self) -> VertexDist
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 Debug for VertexDist
impl Debug for VertexDist
impl Copy for VertexDist
Auto Trait Implementations§
impl Freeze for VertexDist
impl RefUnwindSafe for VertexDist
impl Send for VertexDist
impl Sync for VertexDist
impl Unpin for VertexDist
impl UnwindSafe for VertexDist
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