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.Vector2#lerp

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

Linearly interpolates between this vector and v, where alpha is the distance along the line - alpha = 0 will be this vector, and alpha = 1 will be v.

Parameters

vector to interpolate towards.

alpha: number

interpolation factor in the closed interval [0, 1].