Checks if a vector is normalized (has a magnitude of one).
// Returns true (the vector has magnitude 1)const normalized = Chalkboard.vect.isNormalized(Chalkboard.vect.init(0.6, 0.8)); Copy
// Returns true (the vector has magnitude 1)const normalized = Chalkboard.vect.isNormalized(Chalkboard.vect.init(0.6, 0.8));
The vector
Checks if a vector is normalized (has a magnitude of one).
Example