[][src]Struct parsys::ParSys

pub struct ParSys {
    pub timestep: f32,
    // some fields omitted
}

Fields

timestep: f32

Implementations

impl ParSys[src]

pub fn new(timestep: f32, integration_method: IntegrationMethod) -> ParSys[src]

pub fn add_node(&mut self, center: Point2D, radius: f32) -> u32[src]

pub fn get_node(&self, id: u32) -> Result<&Node, &str>[src]

pub fn simulate(&mut self, seconds: f32)[src]

pub fn step(&mut self)[src]

pub fn set_velocity(&mut self, id: u32, velocity: Point2D) -> Result<(), &str>[src]

pub fn add_force(
    &mut self,
    selector: fn(n: &Node, pos: &Point2D, vel: &Point2D) -> bool,
    force_from_node: FnThatComputesForceFromNode
)
[src]

pub fn get_dist(&self, id1: u32, id2: u32) -> Result<f32, &str>[src]

Trait Implementations

impl Default for ParSys[src]

impl ExplicitEuler for ParSys[src]

impl RungeKutta4 for ParSys[src]

Auto Trait Implementations

impl RefUnwindSafe for ParSys

impl Send for ParSys

impl Sync for ParSys

impl Unpin for ParSys

impl UnwindSafe for ParSys

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.