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

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

    • num: number

      The number

    • dimension: 2 | 3 | 4

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

    Returns ChalkboardVector