leaflet.geodesic
    Preparing search index...

    Class GeodesicCore

    Index

    Constructors

    Properties

    ellipsoid: { a: number; b: number; f: number } = ...
    options: GeodesicOptions = ...

    Methods

    • Returns the point of intersection of two paths defined by position and bearing. This calculation uses a spherical model of the earth. This will lead to small errors compared to an ellipsiod model. based on the work of Chris Veness (https://github.com/chrisveness/geodesy) source: https://github.com/chrisveness/geodesy/blob/master/latlon-spherical.js

      Parameters

      • firstPos: LatLng

        1st path: position and bearing

      • firstBearing: number
      • secondPos: LatLng

        2nd path: position and bearing

      • secondBearing: number

      Returns null | LatLng

    • Parameters

      • start: LatLng
      • dest: LatLng

      Returns LatLng

    • general wrap function with arbitrary max value

      Parameters

      • degrees: number

        arbitrary value

      • max: number = 360

      Returns number

      degrees between -max..+max