math: radians to degrees function

pull/1049/head
Henrixounez 2019-06-23 10:44:36 +02:00 committed by Alex Medvednikov
parent a69e6febbc
commit 9445fa599c
1 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,10 @@ fn radians(degrees f64) f64 {
return degrees * (PI / 180.0)
}
fn degrees(radians f64) f64 {
return radians * (180.0 / PI)
}
fn round(f f64) f64 {
return C.round(f)
}