Calculates a vector with the inputted magnitude.
// Returns (6, 8) (normalized (3, 4) scaled to magnitude 10)const v = Chalkboard.vect.magset(Chalkboard.vect.init(3, 4), 10); Copy
// Returns (6, 8) (normalized (3, 4) scaled to magnitude 10)const v = Chalkboard.vect.magset(Chalkboard.vect.init(3, 4), 10);
The vector
The magnitude to set to
Calculates a vector with the inputted magnitude.
Example