MCPcopy Create free account
hub / github.com/mozilla/rhino / atan2

Method atan2

rhino/src/main/java/org/mozilla/javascript/NativeMath.java:171–176  ·  view source on GitHub ↗
(
            Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args)

Source from the content-addressed store, hash-verified

169 }
170
171 private static Object atan2(
172 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {
173 double x = ScriptRuntime.toNumber(args, 0);
174 x = Math.atan2(x, ScriptRuntime.toNumber(args, 1));
175 return ScriptRuntime.wrapNumber(x);
176 }
177
178 private static Object cbrt(
179 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {

Callers 4

KFunction · 0.80
testNegZero1HelperFunction · 0.80
regress-329383.jsFile · 0.80
15.8.2.5.jsFile · 0.80

Calls 2

toNumberMethod · 0.95
wrapNumberMethod · 0.95

Tested by

no test coverage detected