You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
intersection(_:_:) takes two instances of LineSegment, which is just a type alias for a tuple of two coordinates. This is an unusual type used nowhere else in the library. I think it’s intended to be more efficient than LineString for intersection purposes, but LineString would be more discoverable. We should add a LineString.intersection(with:) method that takes another LineString. This method would be more discoverable and intuitive than the existing intersection(_:_:) method, and we might eventually have an opportunity to make it more generic as part of a protocol once #51 is implemented.
intersection(_:_:)
takes two instances ofLineSegment
, which is just a type alias for a tuple of two coordinates. This is an unusual type used nowhere else in the library. I think it’s intended to be more efficient thanLineString
for intersection purposes, butLineString
would be more discoverable. We should add aLineString.intersection(with:)
method that takes anotherLineString
. This method would be more discoverable and intuitive than the existingintersection(_:_:)
method, and we might eventually have an opportunity to make it more generic as part of a protocol once #51 is implemented./cc @mapbox/navigation-ios @ZiZasaurus
The text was updated successfully, but these errors were encountered: