GithubHelp home page GithubHelp logo

flat-earth's Introduction

flat-earth

Here are solutions to the direct and inverse geodesy problems using haversines formula on the sphere and Vincenty's formulae on the ellipsoid as models of the Earth.

  {{ The inputs for the direct or forward problem in geodesy.
  
  * {x} The departure point on the ellipsoid.
  * {α₁} The azimuth from the departure point.
  * {s} The distance to the arrival point. }}
unique type DirectProblem a α s = { x : a, α₁ : α, s : s }

  {{ The outputs for the solution to the direct or forward problem in geodesy.
  
  * {y} The arrival point.
  * {α₂} The azimuth at the arrival point. }}
unique type DirectSolution a α = { y : a, α₂ : Optional α }
InverseProblem.doc =
  {{ The inputs for the inverse or reverse problem in geodesy.
  
  * {x} The departure point.
  * {y} The arrival point. }}
unique type InverseProblem a = { x : a, y : a }

  {{ The outputs for the solution to the inverse or reverse problem in geodesy.
  
  * {s} The distance between departure and arrival points.
  * {α₁} The azimuth at the departure point.
  * {α₂} The azimuth at the arrival point. }}
unique type InverseSolution s α = InverseSolution s α (Optional α)

The Haversine transcript finds the distance from Big Ben, London to the Statue of Liberty, New York, with inputs in decimal degrees and outputs in metres.

The Vincenty transcript finds distances and bearings between points from Vincenty's 1975 paper "Direct and Inverse Solutions of Geodesics on the Ellipsoid with Applications of Nested Equations".

flat-earth's People

Contributors

philderbeast avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.