pub trait Connected<P, T = f64> {
    // Required method
    fn contract(&self, factor: T) -> P;
}
Expand description

Trait for structures containing two elements which can be merged together.

Required Methods§

source

fn contract(&self, factor: T) -> P

Returns the merged point of the start point and end point inside self with weight factor.

Contracting with a factor of Zero should return the start point. Contracting with a factor of One should return the end point. The factor decides how similar the result will be to the start or end point.

Implementors§