intersectionByPaths method

LatLng? intersectionByPaths(
  1. LatLng l1,
  2. LatLng l2,
  3. num b1,
  4. num b2,
)

Calculate the geographic point of intersection of two paths.

Given two geographic points l1 and l2, and two bearings b1 and b2, this function calculates and returns the point of intersection between the paths defined by these points and bearings. Returns a LatLng object representing the intersection point or null if no intersection is found.

Implementation

LatLng? intersectionByPaths(LatLng l1, LatLng l2, num b1, num b2) {
  return GeoPoints.intersectionOfTwoGeoPointsByPaths(l1, l2, b1, b2);
}