René Dudfield wrote:
So it might be nice to return the length(magnitude) there?
BTW, I don't really like the name "length" for a function that returns the magnitude of an arbitrary vector. It only makes sense for vectors representing a physical distance; it's nonsense for anything else (velocity, acceleration, electric field, etc.) -- Greg