despero 0.1.0

Rusty game engine, using API Vulkan and implementing paradigm of ECS
Documentation
1
2
3
4
5
6
7
8
9
use std::f32::consts::PI;

pub fn to_radian(deg: f32) -> f32 {
    deg / 180.0 * PI
}

pub fn to_degrees(rad: f32) -> f32 {
    rad / PI * 180.0
}