Function lerpV

  • Performs linear interpolation on two vectors. Given vectors a and b and interpolation coefficient vector t, returns a + t * (b - a).

    Parameters

    • a: Vec4

      Operand vector.

    • b: Vec4

      Operand vector.

    • t: Vec4

      Interpolation coefficients vector.

    • Optional dst: Vec4

      vector to hold result. If not passed in a new one is created.

    Returns Vec4

    the linear interpolated result.