Git Product home page Git Product logo

Comments (2)

alistairmgreen avatar alistairmgreen commented on June 17, 2024

I suppose the best thing we can do in this situation is either:

  • Use the take-off position as the start and draw the start line there; or
  • Use TP1 as the start and TP2 as TP1.

I'm not really sure which way would make more sense.

from jsigc.

brisbori avatar brisbori commented on June 17, 2024

On 13/10/15 18:13, Alistair Green wrote:

I suppose the best thing we can do in this situation is either:

  • Use the take-off position as the start and draw the start line
    there; or
  • Use TP1 as the start and TP2 as TP1.

I'm not really sure which way would make more sense.


Reply to this email directly or view it on GitHub
#15 (comment).

I don't think take off position will work. Declared take-off positions
often aren't in the file, and the actual take-off could be just about
any direction from the first declared point.

I must admit my instinct was just to refuse to draw the line but make
sure the track still displays- at the same time telling the user there's
an error. If we aren't happy with that the best I can suggest is to go
through the declared points probably at the end of parsing the file, and
if we find two successive points the same throw one away. This would
also help if two successive turning points are identical- as it is now
that doesn't throw an error, but the sector display is garbage.
Probably best done at the end of the igc parse function- because we've
already converted to floating point using checking for very small
differences.

Seem reasonable?

Regards

from jsigc.

Related Issues (14)

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.