Struct vrp_core::algorithms::geometry::Point [−][src]
Represents a point in 2D space.
Fields
x: f64X value.
y: f64Y value.
Implementations
impl Point[src]
impl Point[src]pub fn new(x: f64, y: f64) -> Self[src]
Creates a new instance of Point.
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]
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]
Computes distance from segment to the point.
pub fn dot_product(a: &Point, b: &Point, c: &Point) -> f64[src]
Computes the dot product AB . BC
pub fn cross_product(a: &Point, b: &Point, c: &Point) -> f64[src]
Computes the cross product AB x AC
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Point
impl RefUnwindSafe for Pointimpl UnwindSafe for Point
impl UnwindSafe for Point