Repository navigation
Improve LatLngBounds - #3803
Improve LatLngBounds#3803
Conversation
|
@1ec5 With respect to the above, how should |
|
@1ec5 Also, if |
|
As ivars in Objective-C are initialized implicitly, I don’t think it’ll be possible to keep a |
There was a problem hiding this comment.
The naming of this method isn’t incredibly obvious. Could you add a documentation comment so its purpose is clear?
|
The new cardinal direction getters for |
* Use "named constructors": empty, world, hull * Make the two-argument constructor lenient (i.e., it is a hull operation) * Add various accessors * Enforce a single empty representation
e71f805 to
37c27f3
Compare
Replace:
LatLngBounds()(constructor)LatLngBounds::getExtendable()(static)LatLngBounds(sw, ne)(constructor)With:
LatLngBounds::world()(static)LatLngBounds::empty()(static)LatLngBounds::fromCorners(a, b)(static, swaps coordinates as necessary)