UNPKG

@phaserjs/phaser

Version:
6 lines (5 loc) 187 B
import { Vec3 } from "./Vec3"; export function Vec3Lerp(a, b, t, out = new Vec3()) { const { x, y, z } = a; return out.set(x + t * (b.x - x), y + t * (b.y - y), z + t * (b.z - z)); }