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

Re: [pygame] Pygame 2D vector



DR0ID wrote:

get_length_sqrd just returns the length of a vector which does not depend on the quadrant. Using atan2 might be simpler

The get_angle() method *does* use atan2. The length check seems
to be just to avoid an exception if the vector happens to be (0, 0).

--
Greg