1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

math: radians to degrees function

This commit is contained in:
Henrixounez 2019-06-23 10:44:36 +02:00 committed by Alex Medvednikov
parent a69e6febbc
commit 9445fa599c

View File

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