[][src]Trait duckduckgeo::GravityTrait

pub trait GravityTrait {
    type N: Float;
    fn pos(&self) -> Vec2<Self::N>;
fn mass(&self) -> Self::N;
fn apply_force(&mut self, arr: Vec2<Self::N>); }

Passed to gravitate.

Associated Types

type N: Float

Loading content...

Required methods

fn pos(&self) -> Vec2<Self::N>

fn mass(&self) -> Self::N

fn apply_force(&mut self, arr: Vec2<Self::N>)

Loading content...

Implementors

Loading content...