Struct vrp_core::algorithms::geometry::Point [−][src]
Expand description
Represents a point in 2D space.
Fields
x: f64Expand description
X value.
y: f64Expand description
Y value.
Implementations
impl Point[src]
impl Point[src]pub fn distance_to_point(&self, other: &Point) -> f64[src]
pub fn distance_to_point(&self, other: &Point) -> f64[src]Computes distance from given point to other
pub fn distance_to_line(&self, a: &Point, b: &Point) -> f64[src]
pub fn distance_to_line(&self, a: &Point, b: &Point) -> f64[src]Computes distance from line, drawn by points a and b, to the point.
pub fn distance_to_segment(&self, a: &Point, b: &Point) -> f64[src]
pub fn distance_to_segment(&self, a: &Point, b: &Point) -> f64[src]Computes distance from segment to the point.
Trait Implementations
impl Eq for Point[src]
Auto Trait Implementations
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnwindSafe for Point
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,