MCPcopy
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

1import { test } from 'node:test';
2import assert from 'node:assert/strict';
3import {
4 PI, clamp, percent, percentLerp, lerp, mod, smoothStep, nearestPowerOfTwo, oscillate,

Callers

nothing calls this directly

Calls 15

clampFunction · 0.90
percentFunction · 0.90
lerpFunction · 0.90
percentLerpFunction · 0.90
modFunction · 0.90
smoothStepFunction · 0.90
nearestPowerOfTwoFunction · 0.90
distanceWrapFunction · 0.90
lerpWrapFunction · 0.90
distanceAngleFunction · 0.90
lerpAngleFunction · 0.90
isOverlappingFunction · 0.90

Tested by

no test coverage detected