Calculates the angle between two vectors
// Returns 0.5236 (approximately π/6 radians)const angle = Chalkboard.vect.angBetween(Chalkboard.vect.init(1, 0), Chalkboard.vect.init(0.866, 0.5)); Copy
// Returns 0.5236 (approximately π/6 radians)const angle = Chalkboard.vect.angBetween(Chalkboard.vect.init(1, 0), Chalkboard.vect.init(0.866, 0.5));
The first vector
The second vector
Calculates the angle between two vectors
Example