UNPKG

@cran/lib.vue.ref

Version:

Vue Reactivity Extensions

12 lines (11 loc) 258 B
import { eagerComputed, unwrap } from "../utility"; /** * @since 0.0.1 * @category Math * @inheritdoc Math.atan2 */ export function useAtan2(y, x) { return eagerComputed(function compute() { return Math.atan2(unwrap(y), unwrap(x)); }); }