Chalkboard - v3.0.1
    Preparing search index...

    Function fill

    • Initializes a vector with all its components filled with one number.

      Parameters

      • num: number

        The number

      • dimension: 2 | 3 | 4

        The dimension of the vector, which can be 2, 3, or 4

      Returns ChalkboardVector

      // Returns (5, 5, 5)
      const v = Chalkboard.vect.fill(5, 3);