Chalkboard - v3.0.4
    Preparing search index...

    Function rect

    • Evaluates the rect function at a number.

      Parameters

      • num: number

        the number

      • center: number = 0

        The position of the function

      • width: number = 2

        The width of the function

      • scl: number = 1

        The scale of the function

      Returns number

      const result = Chalkboard.real.rect(0, 0, 2); // Returns 1