[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Re: removing 'experimental' notice from pygame.math



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.ewing@xxxxxxxxxxxxxxxx> 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