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