SpeedCompute

Trait SpeedCompute 

Source
pub trait SpeedCompute {
    // Required method
    fn compute_velocity(&self, max_velocity: f32) -> f32;
}
Expand description

Trait used to compute the velocity

Required Methods§

Source

fn compute_velocity(&self, max_velocity: f32) -> f32

Compute the actual velocity based on the maximum velocity of the platform

Implementations on Foreign Types§

Source§

impl SpeedCompute for Option<Speed>

Source§

fn compute_velocity(&self, max_velocity: f32) -> f32

Implementors§