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

Method cos

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

Source from the content-addressed store, hash-verified

229 }
230
231 private static Object cos(
232 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {
233 double x = ScriptRuntime.toNumber(args, 0);
234 x = Double.isInfinite(x) ? Double.NaN : Math.cos(x);
235 return ScriptRuntime.wrapNumber(x);
236 }
237
238 private static Object cosh(
239 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {

Callers 13

qFunction · 0.80
feFunction · 0.80
XFunction · 0.80
seFunction · 0.80
15.8.2.7.jsFile · 0.80
partialFunction · 0.80
RotateXFunction · 0.80
RotateYFunction · 0.80
RotateZFunction · 0.80
partialFunction · 0.80
RotateXFunction · 0.80
RotateYFunction · 0.80

Calls 2

toNumberMethod · 0.95
wrapNumberMethod · 0.95

Tested by

no test coverage detected