robotics 0.1.5

Rust implementation of robotics algorithms
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub mod mvn;
pub mod plot;
pub mod state;

pub fn deg2rad(x: f64) -> f64 {
    const DEG2RAD_FACTOR: f64 = std::f64::consts::PI / 180.0;
    x * DEG2RAD_FACTOR
}

pub fn rad2deg(x: f64) -> f64 {
    const RAD2DEG_FACTOR: f64 = 180.0 / std::f64::consts::PI;
    x * RAD2DEG_FACTOR
}