mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-26 19:19:16 +02:00
A much better area Z-level algorithm
O(n^2) -> O(1)
This commit is contained in:
@ -30,6 +30,7 @@ public:
|
||||
return (left() > right()) ? 360.0 - res : res;
|
||||
}
|
||||
double height() const {return (top() - bottom());}
|
||||
double area() const {return qAbs(width()) * qAbs(height());}
|
||||
|
||||
double top() const {return _tl.lat();}
|
||||
double bottom() const {return _br.lat();}
|
||||
|
Reference in New Issue
Block a user