@maptiler/weather
Version:
Weather layers for MapTiler Cloud and MapTiler SDK
12 lines (11 loc) • 639 B
TypeScript
import { Vertex } from '../types';
/**
* Performs spherical linear interpolation (SLERP) between two 3D vertices.
* @param start - The starting vertex (unit vector) for interpolation.
* @param end - The ending vertex (unit vector) for interpolation.
* @param interpolationFactor - A number between 0 and 1 that controls the interpolation;
* 0 returns the 'start' vector, 1 returns the 'end' vector.
* @returns The interpolated vertex computed via spherical linear interpolation.
*/
declare function slerpVectors(start: Vertex, end: Vertex, interpolationFactor: number): Vertex;
export { slerpVectors };