Skip to main content

StateSpace

Trait StateSpace 

Source
pub trait StateSpace {
    type State;

    // Required methods
    fn distance(&self, from: &Self::State, to: &Self::State) -> f64;
    fn interpolate(
        &self,
        from: &Self::State,
        to: &Self::State,
        t: f64,
    ) -> Self::State;
}
Expand description

A continuous configuration space.

Required Associated Types§

Source

type State

A configuration.

Required Methods§

Source

fn distance(&self, from: &Self::State, to: &Self::State) -> f64

The distance between two configurations.

Source

fn interpolate( &self, from: &Self::State, to: &Self::State, t: f64, ) -> Self::State

The configuration at fraction t in [0, 1] of the way from from to to.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§