MCPcopy
hub / github.com/midrender/revideo / map

Function map

packages/core/src/tweening/helpers.ts:1–3  ·  view source on GitHub ↗
(from: number, to: number, value: number)

Source from the content-addressed store, hash-verified

1export function map(from: number, to: number, value: number) {
2 return from + (to - from) * value;
3}
4
5export function remap(
6 fromIn: number,

Callers 15

lineCountMethod · 0.90
getSelectionAlphaMethod · 0.90
selectionStrengthMethod · 0.90
tokenMethod · 0.90
drawRippleFunction · 0.90
mapPointsMethod · 0.90
measureSizeMethod · 0.90
drawScopeMethod · 0.90
drawTokenMethod · 0.90
lerpMethod · 0.90
lerpMethod · 0.90
polarLerpMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected