neophys 0.1.0

an ap physics study attempt
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Implementation of forces to be used in a Body; generally not meant to be changed
//! - Gravity: represents the basic Newton gravitational force
//!
//! # Examples
//! ```
//! use neophys::force::gravity::Gravity;
//! // Instantiate a new force Gravity
//! let f = Gravity::new(0.0, 0.0);
//! ```

pub mod basic;
pub mod gravity;
use crate::constants::*;

pub trait Force {
    /// Returns the resulting acceleration
    fn calc(&self) -> f32;
}