Checks if two vectors are parallel.
// Returns true (the vectors point in the same direction)const parallel = Chalkboard.vect.isParallel(Chalkboard.vect.init(2, 0), Chalkboard.vect.init(4, 0)); Copy
// Returns true (the vectors point in the same direction)const parallel = Chalkboard.vect.isParallel(Chalkboard.vect.init(2, 0), Chalkboard.vect.init(4, 0));
The first vector
The second vector
Checks if two vectors are parallel.
Example