UNPKG

@fimbul-works/vec

Version:

A comprehensive TypeScript vector math library providing 2D, 3D, and 4D vector operations with a focus on performance and type safety.

22 lines (21 loc) 793 B
/** * Documentation for spherical linear interpolation functions. * @module Slerp */ /** * Spherical linear interpolation for angles (in radians). * Handles wrapping around 2π correctly. * @param {number} from - Start angle in radians * @param {number} to - End angle in radians * @param {number} t - Interpolation factor (0-1) * @returns {number} Interpolated angle */ export declare const slerp: (from: number, to: number, t: number) => number; /** * Spherical linear interpolation for angles (in degrees). * @param {number} from - Start angle in degrees * @param {number} to - End angle in degrees * @param {number} t - Interpolation factor (0-1) * @returns {number} Interpolated angle */ export declare const slerpDegrees: (from: number, to: number, t: number) => number;