Checks if two vectors are orthogonal.
// Returns true (the vectors are perpendicular)const orthogonal = Chalkboard.vect.isOrthogonal(Chalkboard.vect.init(1, 0), Chalkboard.vect.init(0, 1)); Copy
// Returns true (the vectors are perpendicular)const orthogonal = Chalkboard.vect.isOrthogonal(Chalkboard.vect.init(1, 0), Chalkboard.vect.init(0, 1));
The first vector
The second vector
Checks if two vectors are orthogonal.
Example