3 ms·
Using templates I once implemented logic for dealing with SI units[1]. I also included angles, which is a bit odd but useful in practice. It is really nice to
by roeles 5y ago
Using templates I once implemented logic for dealing with SI units[1]. I also included angles, which is a bit odd but useful in practice.
It is really nice to have a type system that checks your formulas. Saved me a couple of times.
[1] https://gitlab.com/roeles/zen/-/blob/master https://gitlab.com/roeles/zen/-/blob/master
- roeles 5y agohttps://gitlab.com/roeles/zen/-/blob/master/src/physics/unit.hpp https://gitlab.com/roeles/zen/-/blob/master/src/physics/unit...