Functions

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.

    Seealso

    LineString.intersection(with:)
  • Returns the point midway between two coordinates measured in degrees.

    This function is equivalent to the turf-midpoint package of Turf.js (source code).