cellular_raza_concepts

Trait Velocity

Source
pub trait Velocity<Vel> {
    // Required methods
    fn velocity(&self) -> Vel;
    fn set_velocity(&mut self, velocity: &Vel);
}
Expand description

Methods for accessing the velocity of an agent

Required Methods§

Source

fn velocity(&self) -> Vel

Gets the cells current velocity.

Source

fn set_velocity(&mut self, velocity: &Vel)

Sets the cells current velocity.

Implementors§

Source§

impl<A, Vel> Velocity<Vel> for CellAgentBox<A>
where A: Velocity<Vel>,