Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/KilledByAPixel/LittleJS
/ math.test.mjs
File
math.test.mjs
test/math.test.mjs:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ test } from
'node:test'
;
2
import
assert from
'node:assert/strict'
;
3
import
{
4
PI, clamp, percent, percentLerp, lerp, mod, smoothStep, nearestPowerOfTwo, oscillate,
Callers
nothing calls this directly
Calls
15
clamp
Function · 0.90
percent
Function · 0.90
lerp
Function · 0.90
percentLerp
Function · 0.90
mod
Function · 0.90
smoothStep
Function · 0.90
nearestPowerOfTwo
Function · 0.90
distanceWrap
Function · 0.90
lerpWrap
Function · 0.90
distanceAngle
Function · 0.90
lerpAngle
Function · 0.90
isOverlapping
Function · 0.90
Tested by
no test coverage detected