Vertex Viewer SDK
    Preparing search index...

    Function lerp

    • Linear interpolates a value between a and b by t. If t is 0, then the result will be a. If t is 1, then the result will be b. t will be clamped to a value between 0 and 1.

      Parameters

      • a: number

        The start value.

      • b: number

        The end value.

      • t: number

        The interpolation value between 0 and 1.

      Returns number

      The interpolated value between a and b.