Skip to content

Instantly share code, notes, and snippets.

@vadixidav
Created January 19, 2016 20:45
Show Gist options
  • Select an option

  • Save vadixidav/36f8af181cb74440d088 to your computer and use it in GitHub Desktop.

Select an option

Save vadixidav/36f8af181cb74440d088 to your computer and use it in GitHub Desktop.
///Apply lorentz forces between two PhysicsParticle objects based on quanta, position, and velocity.
///
///Example:
///```rust
///let mut a: BasicParticle<Cartesian3<f64>, f64>;
///#let mut b: BasicParticle<Cartesian3<f64>, f64>;
///lorentz(&a, &b, 1.0);
///a.advance(1.0);
///#b.advance(1.0);
///```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment