mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-30 02:17:16 +02:00
fix: position_vector
is a specialized displacement
This commit is contained in:
@ -150,8 +150,8 @@ flowchart TD
|
||||
path_length --- distance["<b>distance</b>"]
|
||||
distance --- radial_distance["<b>radial_distance</b>"]
|
||||
length --- wavelength["<b>wavelength</b>"]
|
||||
length --- position_vector["<b>position_vector</b><br>{vector}"]
|
||||
length --- displacement["<b>displacement</b><br>{vector}"]
|
||||
displacement --- position_vector["<b>position_vector</b>"]
|
||||
radius --- radius_of_curvature["<b>radius_of_curvature</b>"]
|
||||
```
|
||||
|
||||
|
@ -49,8 +49,8 @@ flowchart TD
|
||||
path_length --- distance["<b>distance</b>"]
|
||||
distance --- radial_distance["<b>radial_distance</b>"]
|
||||
length --- wavelength["<b>wavelength</b>"]
|
||||
length --- position_vector["<b>position_vector</b><br>{vector}"]
|
||||
length --- displacement["<b>displacement</b><br>{vector}"]
|
||||
displacement --- position_vector["<b>position_vector</b>"]
|
||||
radius --- radius_of_curvature["<b>radius_of_curvature</b>"]
|
||||
```
|
||||
|
||||
@ -74,8 +74,8 @@ inline constexpr auto arc_length = path_length;
|
||||
inline constexpr struct distance final : quantity_spec<path_length> {} distance;
|
||||
inline constexpr struct radial_distance final : quantity_spec<distance> {} radial_distance;
|
||||
inline constexpr struct wavelength final : quantity_spec<length> {} wavelength;
|
||||
inline constexpr struct position_vector final : quantity_spec<length, quantity_character::vector> {} position_vector;
|
||||
inline constexpr struct displacement final : quantity_spec<length, quantity_character::vector> {} displacement;
|
||||
inline constexpr struct position_vector final : quantity_spec<displacement> {} position_vector;
|
||||
```
|
||||
|
||||
Thanks to the expressivity and power of C++ templates, we can specify all quantity properties
|
||||
|
Reference in New Issue
Block a user