Maths · function

lerpAngle

lerp along the shortest arc — the angular counterpart for render interpolation.

Explained in Coordinates and units.

function lerpAngle(a: number, b: number, t: number): number
import { lerpAngle } from '@driftengine/core';

Parameters

ParameterTypeDescription
anumber
bnumber
tnumber