ph91.de
  • Home
  • About me
  • Categories
    • Software Development
    • New Zealand
    • Music
    • Tech & IT
    • Sports
    • Dublin
    • Junk
  • Contact
  • Disclaimer
ph91.de
ph91.de
  • Home
  • About me
  • Categories
    • Software Development
    • New Zealand
    • Music
    • Tech & IT
    • Sports
    • Dublin
    • Junk
  • Contact
  • Disclaimer
  • Allgemein
  • Software Development

Convert to degree to direction (the beautiful way)

  • 15. August 2020

Recently I encountered the issue of converting a degree in ° (0-360) to a direction (compass directions). On my internet research I only found “ugly” solutions where the minAngle and maxAngle were explicitly listed for each direciont (N, NNE, NE, NEE…).

There was no chance that I would copy such ugly code into my codebase, therefore it made the effort to think about a more beautful way to solve this task. In the end, I came up with this:

Related Topics
  • direction
  • enum
  • java
Philipp

Previous Article
  • Allgemein

I’m running in Docker

  • 17. February 2020
  • Philipp
View Post
Next Article
action adventure beach clouds
  • Software Development

Creating “Windwarner”

  • 2. January 2021
  • Philipp
View Post
14 comments
  1. Pingback: purchase androxal cost effectiveness
  2. Pingback: canadian rifaximin diet pills without prescription
  3. Pingback: buying enclomiphene buy singapore
  4. Pingback: acheter à bas prix kamagra sans ordonnance
  5. Pingback: cheap flexeril cyclobenzaprine australia online generic
  6. Pingback: how to buy dutasteride generic uk buy
  7. Pingback: online order gabapentin cheap fast shipping
  8. Pingback: fildena fedex cod
  9. Pingback: online order itraconazole cost australia
  10. Pingback: purchase staxyn price usa
  11. Pingback: ordering avodart no prescription overnight delivery
  12. Pingback: discount xifaxan without prescriptions canada
  13. Pingback: jak získat kamagra online
  14. Georgia712 says:
    18. August 2025 at 15:24

    https://shorturl.fm/W8SY4

Leave a Reply

Your email address will not be published. Required fields are marked *

Dev profiles
  • BitBucket
  • Github
  • Stackoverflow
Side Projects
  • NMF
  • Speed-kini.de
  • Sudoku Solver
  • Windwarner
Archive
ph91.de
Blog by Philipp Schreitmüller

Input your search keywords and press Enter.