✨ Added utils.rad2deg to core
This commit is contained in:
parent
afc3c7483b
commit
54be0b691e
1 changed files with 4 additions and 0 deletions
|
@ -351,3 +351,7 @@ export function sampleStyle(run, runs) {
|
||||||
export function deg2rad(degrees) {
|
export function deg2rad(degrees) {
|
||||||
return degrees * (Math.PI / 180);
|
return degrees * (Math.PI / 180);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function rad2deg(radians) {
|
||||||
|
return (radians / Math.PI) * 180;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue