[−][src]Function duckduckgeo::gravitate
pub fn gravitate<T: GravityTrait, K: GravityTrait<N = T::N>>(
a: &mut T,
b: &mut K,
min: T::N,
gravity_const: T::N
) -> Result<(), ErrTooClose>
Returns the force to be exerted to the first object. The force to the second object can be retrieved simply by negating the first.