Files
Main/99 Work/0 OneSec/OneSecNotes/00 Daily/2023-11-14.md

39 lines
2.2 KiB
Markdown

---
tags:
- daily
date: 2023-11-14
---
## Tasks
```tasks
due today
```
___
### New Tasks
- [ ]
## Quick Notes
# Daily Recap
## Learnings
#learning/dev-process
1. Bevor ich versuche intelligent zu sein und eine automatisierte Test-suite zu schreiben, sollte ich ganz einfache Hypothesen überprüfen. Ich habe heute Koordinaten transformationen gemacht wo ich ein nicht genau definiertes System von Jerry bekommen habe (JSON file mit punkten). Ich habe stunden damit verbracht mein Code anzupassen weil die automatischen Unit Tests nicht funktioniert haben, aber dabei war Jerrys information falsch. Es wäre sehr einfach gewesen das rauszufinden wenn ich mir nur kurz ein paar Punkte genauer angeschaut hätte und +-X, +- Y und +- Z definiert hätte.
2. [[C++]]: #learning/cpp
1. iterator objects are pointers to a element of a container. In order to get the index of an object we can take the iterator and substract the adress of the first element of the container: `it - container.begin()`
2. there are ways to find elements of containers using the standard library: `std::upper_bound`, `std::lower_bound`
```c++
auto it = std::upper_bound(radial_distance_map_.begin(), radial_distance_map_.end(), radius);
if (it == radial_distance_map_.end()) { return false; } // couldn't find the radius
mz = it - radial_distance_map_.begin() - 1; // take element just before the iterator to get the
```
3. I have learned a lot about [Spherical Coordinate systems](https://en.wikipedia.org/wiki/Spherical_coordinate_system) today and how the surface of the globe is not equally separated into surface patches. This can be seen when designing a [[Fruxel Grid]] where the longitude is split up into 128 sections and the latitude is split up into 64 sections (which is basically the equi-rectangular projection). The regions close to the poles are very distorted, since the slices become infinitesimally small. The same phenomena manifests itself in [*km per degree* latitude](https://en.wikipedia.org/wiki/Decimal_degrees#Precision) on the globe. Close to the equator every degree corresponds to 111 km, but in Europe (roughly 45°N ) one degree spans only over 78.7 km.
## Planning of Tomorrow
### New Tasks for tomorrow
1. change due dates of unfinished tasks today
2. add new tasks:
- [ ]