On this page

Function slerpVectors

  • Performs spherical linear interpolation (SLERP) between two 3D vertices.

    Parameters

    • start: Vertex

      The starting vertex (unit vector) for interpolation.

    • end: Vertex

      The ending vertex (unit vector) for interpolation.

    • interpolationFactor: number

      A number between 0 and 1 that controls the interpolation; 0 returns the 'start' vector, 1 returns the 'end' vector.

    Returns Vertex

    The interpolated vertex computed via spherical linear interpolation.

Was this helpful?
SDK JS
Modules
Reference
functions
slerpVectors