Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/melonjs/melonJS
/ math.spec.js
File
math.spec.js
packages/melonjs/tests/math.spec.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ describe, expect, it } from
"vitest"
;
2
import
{ math } from
"../src/index.js"
;
3
4
describe(
"Math"
, () => {
Callers
nothing calls this directly
Calls
8
lerpSim
Function · 0.85
random
Method · 0.80
sim
Function · 0.70
clamp
Method · 0.65
floor
Method · 0.65
lerp
Method · 0.45
damp
Method · 0.45
abs
Method · 0.45
Tested by
no test coverage detected