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: Vec3

      Operand vector.

    • b: Vec3

      Operand vector.

    • t: Vec3

      Interpolation coefficients vector.

    • Optional dst: Vec3

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

    Returns Vec3

    the linear interpolated result.