• Linearly interpolates between two 3D vectors.

    Parameters

    • t: number

      The interpolation value.

    • t1: number

      The start of the interpolation range.

    • t2: number

      The end of the interpolation range.

    • p1: Vec3

      The start vector (3 elements).

    • p2: Vec3

      The end vector (3 elements).

    • dest: Vec3

      The destination vector to store the result (optional).

    Returns
        | Uint8Array<any>
        | Float32Array<any>
        | Float64Array<any>
        | Int8Array<any>
        | Int16Array<any>
        | Uint16Array<any>
        | Int32Array<any>
        | Uint32Array<any>
        | [number, number, number]

    The interpolated vector.