MCPcopy
hub / github.com/williamngan/pts / find

Method find

src/Num.ts:495–495  ·  view source on GitHub ↗
(rad:number)

Source from the content-addressed store, hash-verified

493
494 for (let i = 0; i < 360; i++) cos[i] = Math.cos(i * Math.PI / 180);
495 let find = (rad:number) => cos[Math.floor(Geom.boundAngle(Geom.toDegree(rad)))];
496
497 return { table: cos, cos: find };
498 }

Callers 15

ItFunction · 0.80
kFunction · 0.80
TrFunction · 0.80
FrFunction · 0.80
HnFunction · 0.80
PaFunction · 0.80
JsFunction · 0.80
L_Function · 0.80
VdFunction · 0.80
pfFunction · 0.80
mFunction · 0.80

Calls 3

boundAngleMethod · 0.80
toDegreeMethod · 0.80
floorMethod · 0.45

Tested by

no test coverage detected