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#lerpVectors

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

Sets this vector to be the vector linearly interpolated between v1 and v2 where alpha is the distance along the line connecting the two vectors - alpha = 0 will be v1, and alpha = 1 will be v2.

Parameters

the starting vector.

vector to interpolate towards.

alpha: number

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