UNPKG

@phaserjs/phaser

Version:
6 lines (5 loc) 282 B
import { CatmullRom } from "../CatmullRom"; import { Vec3 } from "./Vec3"; export function Vec3CatmullRom(p1, p2, p3, p4, t, out = new Vec3()) { return out.set(CatmullRom(t, p1.x, p2.x, p3.x, p4.x), CatmullRom(t, p1.y, p2.y, p3.y, p4.y), CatmullRom(t, p1.z, p2.z, p3.z, p4.z)); }