Home > @josh-brown/vector > VectorBuilder > zeros
Constructs a vector of all zeros
Signature:
zeros(dimension: number): V;|
Parameter |
Type |
Description |
|---|---|---|
|
dimension |
number |
The dimension of the vector to construct |
Returns:
V
The new vector
vectorBuilder.zeros(3); // [ 0 0 0 ]