mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
math: radians to degrees function
This commit is contained in:
parent
a69e6febbc
commit
9445fa599c
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue