Initializes the zero vector of a particular dimension.

// Returns (0, 0, 0, 0)
const v = Chalkboard.vect.zero(4);
  • Parameters

    • dimension: 2 | 3 | 4

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

    Returns ChalkboardVector