Calculates the vector rejection of two vectors.
// Returns (0.6, 0.8) (component of (1, 1) orthogonal to (0.8, -0.6))const rejection = Chalkboard.vect.oproj(Chalkboard.vect.init(1, 1), Chalkboard.vect.init(0.8, -0.6)); Copy
// Returns (0.6, 0.8) (component of (1, 1) orthogonal to (0.8, -0.6))const rejection = Chalkboard.vect.oproj(Chalkboard.vect.init(1, 1), Chalkboard.vect.init(0.8, -0.6));
The first vector
The second vector
Calculates the vector rejection of two vectors.
Example