docs: "Getting Started" chapters updated
This commit is contained in:
1 parent
5cc7fb1f0b
commit
0b3618d723
5 files changed
+102
-101
No files matched your search
@@ -1,7 +1,7 @@
|
||||
# Quick Start
|
||||
|
||||
A **quantity** is a concrete amount of a unit for a quantity type of a specified dimension with a
|
||||
specific representation, and is represented in the library with a `quantity` class template.
|
||||
A **quantity** is a concrete amount of a unit representing a quantity type of a specified dimension with a
|
||||
specific representation. It is represented in the library with a `quantity` class template.
|
||||
|
||||
|
||||
## Creating a quantity
|
||||
@@ -78,15 +78,6 @@ constexpr auto kmph = km / h;
|
||||
quantity speed = 60 * kmph;
|
||||
```
|
||||
|
||||
or even:
|
||||
|
||||
```cpp
|
||||
constexpr auto kilometre = si::kilo<si::metre>;
|
||||
constexpr auto kilometre_per_hour = kilometre / si::hour;
|
||||
constexpr auto kmph = kilometre_per_hour;
|
||||
quantity speed = 60 * kmph;
|
||||
```
|
||||
|
||||
!!! note
|
||||
|
||||
In case you wonder why this library does not use UDLs to create quantities, please check
|
||||
|
||||
Reference in new issue
Block a user