pub trait Vector<C: Coord> {
    // Provided methods
    fn vector(p: &C, q: &C) -> C { ... }
    fn determinant(p: &C, q: &C) -> f64 { ... }
    fn dist2(p: &C, q: &C) -> f64 { ... }
    fn equals(p: &C, q: &C) -> bool { ... }
    fn equals_with_span(p: &C, q: &C, span: f64) -> bool { ... }
}
Expand description

Trait implementing basic vector functions for a Coord.

To implement this trait, it is possible to simply: impl Vector<Point> for Point {}

Provided Methods§

source

fn vector(p: &C, q: &C) -> C

source

fn determinant(p: &C, q: &C) -> f64

source

fn dist2(p: &C, q: &C) -> f64

source

fn equals(p: &C, q: &C) -> bool

Test whether two coordinates describe the same point in space

source

fn equals_with_span(p: &C, q: &C, span: f64) -> bool

Implementors§