Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/remapper/src/deps.ts>three.MathUtils.lerp

A framework for Beat Saber map scripting.
Go to Latest
function three.MathUtils.lerp
import { three } from "https://deno.land/x/remapper@2.1.0/src/deps.ts";
const { lerp } = three.MathUtils;

Returns a value linearly interpolated from two known points based on the given interval - t = 0 will return x and t = 1 will return y.

Parameters

x: number

Start point.

y: number

End point.

t: number

interpolation factor in the closed interval [0, 1]

Returns

number