Search notes:

JavaScript library: geodesy

Calculating the intersection between two great circles

<!DOCTYPE html>
<html>
<head>
  <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
  <title>Intersection</title>
</head>

<body onload='main()'>
<div id='out'/>
</body>
<script type='module'>
// ---------------------------------------------------------------------------------------
   import LatLon from 'https://cdn.jsdelivr.net/npm/geodesy@2/latlon-nvector-spherical.js';

   const pt_1 = new LatLon(47.31,  23.18);
   const pt_2 = new LatLon(18.76, -14.63);

   const pt   = LatLon.intersection(
                  pt_1,  30.1,
                  pt_2, 348.8
                );

   document.getElementById('out').innerHTML = 'Intersection is at <b>' + pt + '</b>.';
// ---------------------------------------------------------------------------------------
</script>
</html>
Github repository about-js-geodesy, path: /intersection.html

Links

https://github.com/chrisveness/geodesy

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1743566498, '18.191.86.218', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/web/libraries/geodesy/index(66): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78