crossTrackDistanceTo method

num crossTrackDistanceTo(
  1. LatLng l1,
  2. LatLng start,
  3. LatLng end, [
  4. num? radius,
])

Calculate the signed distance from a geographic point l1 to create a circle with start start and end end points.

Given a geographic point l1, and start start and end end points, this function calculates and returns the signed distance in meters from point l1 to create a circle with the specified start and end points.

Implementation

num crossTrackDistanceTo(LatLng l1, LatLng start, LatLng end, [num? radius]) {
  return TrackDistance.crossTrackDistanceTo(l1, start, end);
}