Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
typescriptServices.js
File · 0.80
It
Function · 0.80
k
Function · 0.80
Tr
Function · 0.80
Fr
Function · 0.80
Hn
Function · 0.80
Pa
Function · 0.80
Js
Function · 0.80
L_
Function · 0.80
Vd
Function · 0.80
pf
Function · 0.80
m
Function · 0.80
Calls
3
boundAngle
Method · 0.80
toDegree
Method · 0.80
floor
Method · 0.45
Tested by
no test coverage detected