cellular_raza_concepts

Trait Position

Source
pub trait Position<Pos> {
    // Required methods
    fn pos(&self) -> Pos;
    fn set_pos(&mut self, position: &Pos);
}
Expand description

Methods for accessing the position of an agent.

Required Methods§

Source

fn pos(&self) -> Pos

Gets the cells current position.

Source

fn set_pos(&mut self, position: &Pos)

Gets the cells current velocity.

Implementors§

Source§

impl<A, Pos> Position<Pos> for CellAgentBox<A>
where A: Position<Pos>,