Commit da59459
committed
Refactor Units and PhysicalConstants for Consistency and Maintainability
This update migrates hardcoded constants in the Units class to the PhysicalConstants class, ensuring all unit conversions are derived from a single source. New constants for various unit conversions, including length, area, and time, have been added to PhysicalConstants. The Units class now references these constants, enhancing code clarity and maintainability. Additionally, the implementation of generic getters for these constants improves type safety across the library.1 parent ab59a41 commit da59459
4 files changed
Lines changed: 750 additions & 35 deletions
File tree
- .cursor/rules
- .specstory/history
- Semantics/Quantities/Core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
0 commit comments