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:
parent
a69e6febbc
commit
9445fa599c
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user