pub trait SpeedCompute {
// Required method
fn compute_velocity(&self, max_velocity: f32) -> f32;
}
Expand description
Trait used to compute the velocity
Required Methods§
Sourcefn compute_velocity(&self, max_velocity: f32) -> f32
fn compute_velocity(&self, max_velocity: f32) -> f32
Compute the actual velocity based on the maximum velocity of the platform