Checks if a vector or vector field is of a particular dimension.
// Returns true (the vector is 3D)const is3D = Chalkboard.vect.isDimensionOf(Chalkboard.vect.init(1, 2, 3), 3); Copy
// Returns true (the vector is 3D)const is3D = Chalkboard.vect.isDimensionOf(Chalkboard.vect.init(1, 2, 3), 3);
The vector or vector field
The dimension, which must be 2, 3, or 4
Checks if a vector or vector field is of a particular dimension.
Example