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.Curve#getTangent

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

Returns a unit vector tangent at t. If the subclassed curve do not implement its tangent derivation, 2 points a small delta apart will be used to find its gradient which seems to give a reasonable approximation getTangent(t: number, optionalTarget?: T): T;

Parameters

t: number
optional
optionalTarget: T