The following functions are available globally.
Returns the intersection of two line segments.
This function is roughly equivalent to the turf-line-intersect package of Turf.js (source code), except that it only accepts individual line segments instead of whole line strings.
public func intersection(_ line1: LineSegment, _ line2: LineSegment) -> LocationCoordinate2D?
Returns the point midway between two coordinates measured in degrees.
This function is equivalent to the turf-midpoint package of Turf.js (source code).
public func mid(_ coord1: LocationCoordinate2D, _ coord2: LocationCoordinate2D) -> LocationCoordinate2D