Calculates the subtraction of two vectors.
// Returns (-1, -1, -1)const difference = Chalkboard.vect.sub(Chalkboard.vect.init(2, 3, 4), Chalkboard.vect.init(3, 4, 5)); Copy
// Returns (-1, -1, -1)const difference = Chalkboard.vect.sub(Chalkboard.vect.init(2, 3, 4), Chalkboard.vect.init(3, 4, 5));
The first vector
The second vector
Calculates the subtraction of two vectors.
Example