I don't know about "any gui". I have written plenty and never used the manhattan distance before. I do, however, frequently feel the need to calculate the distance between the mouse pointer and something else and I also have the extra nanosecond to spare to evaluate a square root to get the real thing instead of an approximation. I just don't understand why somebody would bother to include a method to calculate the manhattan distance and "forget" about the much more common euklidean norm. If a square root is too slow for you for some obscure reason, you can still use the manhattan length, but why make life harder for every day QPointF users who just want to evaluate a natural, circular shaped distance and not provide a plain vanilla norm()?




Reply With Quote



Bookmarks