a = รข
Normalises the two-element vector a based on the given magnitude mag, and stores the result in a.
a
mag
This variant is useful if you already know the magnitude
a 2-element vector object
the magnitude
a normalised (based on mag)
Generated using TypeDoc
a = รข
Normalises the two-element vector
a
based on the given magnitudemag
, and stores the result ina
.This variant is useful if you already know the magnitude