Giter Site home page Giter Site logo

geodesy's Introduction

geodesy's People

Contributors

florianreinhart avatar gerdc avatar kevinschlieper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

geodesy's Issues

Doesn't compile with destination Apple Vision Pro

The package doesn't compile with destination Apple Vision Pro
(Apple Vision Pro(Designed for iPad) is no problem.

Coordinate.swift:

#if os(OSX) || os(iOS)
    import Darwin
#elseif os(Linux)
    import Glibc
#endif

Maybe this is enough:

#if os(OSX) || os(iOS) || os(visionOS)
    import Darwin
#elseif os(Linux)
    import Glibc
#endif

Calculation of perpendicular point of a line (p1, p2) and a point (p3) near the line

Hey @florianreinhart!

First: Thank you very much for this great collection of useful geodesy functions!

This isn't a real issue but more a question. I'm currently struggling on calculating the perpendicular point of a line (p1, p2) and a point (p3) near the line.

Background: We are using MKPolyLine to draw lines on the map. The user should be able to tap (p3) on (or near to) a line segment (p1, p2). Now I need the closest point in the line (the perpendicular point) to the touch point, to show a popup with detailed informations at this line point. It should look like this:

screen shot 2018-10-03 at 17 42 24

Now I'm asking myself if this is possible with your functions? Maybe I'm missing something, unfortunately I don't find a solution...

Question: Is this calculation possible with your library or is an entire new function needed to get the result?

Thanks in advance!

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.