wgpu-matrix
    Preparing search index...

    Variable lerpV

    lerpV: <T extends BaseArgType = Float32Array<ArrayBufferLike>>(
        a: BaseArgType,
        b: BaseArgType,
        t: BaseArgType,
        dst?: T,
    ) => T

    Type declaration

      • <T extends BaseArgType = Float32Array<ArrayBufferLike>>(
            a: BaseArgType,
            b: BaseArgType,
            t: BaseArgType,
            dst?: T,
        ): T
      • Performs linear interpolation on two vectors. Given vectors a and b and interpolation coefficient vector t, returns a + t * (b - a).

        Type Parameters

        Parameters

        • a: BaseArgType

          Operand vector.

        • b: BaseArgType

          Operand vector.

        • t: BaseArgType

          Interpolation coefficients vector.

        • Optionaldst: T

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

        Returns T

        the linear interpolated result.