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
528 comments

Comments navigation

Older comments
  1. Adrianjit says:
    14. November 2025 at 17:17

    https://t.me/da_1xbet/8

  2. Adrianjit says:
    14. November 2025 at 18:35

    https://t.me/da_1xbet/2

  3. Adrianjit says:
    14. November 2025 at 21:00

    https://t.me/da_1xbet/11

  4. Adrianjit says:
    14. November 2025 at 22:05

    https://t.me/da_1xbet/10

  5. Adrianjit says:
    14. November 2025 at 23:04

    https://t.me/da_1xbet/15

  6. Adrianjit says:
    15. November 2025 at 00:04

    https://t.me/da_1xbet/6

  7. Adrianjit says:
    15. November 2025 at 02:06

    https://t.me/da_1xbet/7

  8. Adrianjit says:
    15. November 2025 at 05:14

    https://t.me/da_1xbet/14

  9. Adrianjit says:
    15. November 2025 at 06:11

    https://t.me/da_1xbet/12

  10. Adrianjit says:
    15. November 2025 at 07:58

    https://t.me/rq_1xbet/1077

  11. Adrianjit says:
    15. November 2025 at 09:29

    https://t.me/rq_1xbet/853

  12. Adrianjit says:
    15. November 2025 at 11:04

    https://t.me/rq_1xbet/1321

  13. Joshuamok says:
    15. November 2025 at 12:56

    https://t.me/s/rq_1xbet/644

  14. Joshuamok says:
    15. November 2025 at 14:32

    https://t.me/s/rq_1xbet/884

  15. Joshuamok says:
    15. November 2025 at 16:13

    https://t.me/s/rq_1xbet/830

  16. PokerPhantom says:
    15. November 2025 at 16:58

    https://t.me/s/reyting_topcazino/23

  17. Joshuamok says:
    15. November 2025 at 17:55

    https://t.me/s/rq_1xbet/624

  18. Joshuamok says:
    15. November 2025 at 19:32

    https://t.me/s/rq_1xbet/987

  19. JamesJex says:
    15. November 2025 at 20:41

    https://t.me/Official_1xbet1/576

  20. JamesJex says:
    15. November 2025 at 22:02

    https://t.me/s/Official_1xbet1/895

  21. JamesJex says:
    15. November 2025 at 23:18

    https://t.me/s/Official_1xbet1/554

  22. JamesJex says:
    16. November 2025 at 00:33

    https://t.me/Official_1xbet1/259

  23. JamesJex says:
    16. November 2025 at 01:50

    https://t.me/Official_1xbet1/437

  24. JamesJex says:
    16. November 2025 at 03:05

    https://t.me/Official_1xbet1/189

  25. JamesJex says:
    16. November 2025 at 04:16

    https://t.me/s/Official_1xbet1/292

  26. JamesJex says:
    16. November 2025 at 05:28

    https://t.me/s/Official_1xbet1/1398

  27. game bài 66b says:
    17. November 2025 at 03:02

    Nếu bạn yêu thích các trò chơi bắn cá, ứng dụng 66b online sẽ không làm bạn thất vọng. Các game bắn cá tại đây được thiết kế với đồ họa đẹp mắt, hiệu ứng sống động và luật chơi đơn giản.

  28. xn88 gaming says:
    18. November 2025 at 01:57

    live slot365 Chưa dừng lại ở đó, hệ thống bảo mật của chúng tôi cũng đã nhận về rất nhiều lời khen từ chuyên gia cá cược. Nhà cái hiện đang sử dụng công nghệ mã hoá SSL chuẩn 128 bit hiện đại. Vì vậy toàn bộ thông tin cá nhân người dùng sẽ tránh được hoàn toàn tình trạng hacker xâm nhập và đánh cắp. Tuy nhiên để tăng tính an toàn tối đa, thương hiệu vẫn thường xuyên khuyến cáo bet thủ nên thay đổi password định kỳ.

Comments navigation

Older comments

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.