summaryrefslogtreecommitdiff
path: root/src/math.rs
blob: c7ea7f6af2a542923fdda3b249f1aaf5ae0434bd (plain)
1
2
3
4
5
use std::f32::consts::PI;

pub fn convert_angle_to_rad(angle: f32) -> f32 {
    angle * (PI / 180.0)
}