MCPcopy Create free account
hub / github.com/beutton/browser-flight-simulator / remap

Function remap

packages/core/src/math.ts:22–30  ·  view source on GitHub ↗
(
  x: number,
  min1: number,
  max1: number,
  min2 = 0,
  max2 = 1
)

Source from the content-addressed store, hash-verified

20 max2: number
21): number
22export function remap(
23 x: number,
24 min1: number,
25 max1: number,
26 min2 = 0,
27 max2 = 1
28): number {
29 return MathUtils.mapLinear(x, min1, max1, min2, max2)
30}
31
32export function remapClamped(x: number, min1: number, max1: number): number
33export function remapClamped(

Callers 1

copyCameraSettingsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected