Indeed. Perhaps 'magnitude'? Then we could leave 'length' as an alias.

Not deprecate it, because it would be nice to keep true to the goal of the
API being similar to the GLSL vectors, which have the length() function.

Length is also confusing because... length of the container.



On Saturday, March 3, 2018, Greg Ewing <greg.ew...@canterbury.ac.nz> wrote:

> 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
>

Reply via email to