[−][src]Struct parsys::ParSys
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]
&mut self,
selector: fn(n: &Node, pos: &Point2D, vel: &Point2D) -> bool,
force_from_node: FnThatComputesForceFromNode
)
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]
fn step_explicit_euler(&mut self)
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,