Calculates the magnitude of a vector.
// Returns 5 (magnitude of vector (3, 4))const r = Chalkboard.vect.mag(Chalkboard.vect.init(3, 4)); Copy
// Returns 5 (magnitude of vector (3, 4))const r = Chalkboard.vect.mag(Chalkboard.vect.init(3, 4));
The vector
Calculates the magnitude of a vector.
Example