UNPKG
@cran/lib.vue.ref
Version:
latest (0.2.3)
0.2.3
0.2.2
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
0.0.1
Vue Reactivity Extensions
@cran/lib.vue.ref
/
mjs
/
math
/
useRadToDeg.js
13 lines
(12 loc)
•
292 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{ eagerComputed, unwrap }
from
"../utility"
;
const
MODIFIER
=
180
/
Math
.
PI
;
/** * Convert input radians to degrees *
@since
0.0.1 *
@category
Math
*/
export
function
useRadToDeg
(
rad
) {
return
eagerComputed
(
function
compute
(
) {
return
unwrap
(rad) *
MODIFIER
; }); }