fix: velocity is now defined in terms of displacement instead of position_vector

This commit is contained in:
Mateusz Pusz
2024-11-06 18:46:01 +01:00
parent 0c692dca8c
commit 6896d8e086
9 changed files with 69 additions and 68 deletions

View File

@@ -126,19 +126,19 @@ character override is needed):
=== "C++23"
```cpp
inline constexpr struct velocity final : quantity_spec<speed, position_vector / duration> {} velocity;
inline constexpr struct velocity final : quantity_spec<speed, displacement / duration> {} velocity;
```
=== "C++20"
```cpp
inline constexpr struct velocity final : quantity_spec<velocity, speed, position_vector / duration> {} velocity;
inline constexpr struct velocity final : quantity_spec<velocity, speed, displacement / duration> {} velocity;
```
=== "Portable"
```cpp
QUANTITY_SPEC(velocity, speed, position_vector / duration);
QUANTITY_SPEC(velocity, speed, displacement / duration);
```