forked from mpusz/mp-units
fix: add quantity_point::origin, like std::chrono::time_point::clock
This commit is contained in:
committed by
Mateusz Pusz
parent
7ed29807a6
commit
80eefec97c
@@ -23,7 +23,7 @@ The most important concepts in the library are `Unit`, `Dimension`,
|
||||
]
|
||||
|
||||
[<abstract>QuantityPoint|
|
||||
[quantity_point<Dimension, Unit, Rep>]
|
||||
[quantity_point<PointOrigin, Unit, Rep>]
|
||||
]
|
||||
|
||||
[<abstract>QuantityKind|
|
||||
@@ -39,6 +39,10 @@ The most important concepts in the library are `Unit`, `Dimension`,
|
||||
[Unit]<-[Quantity]
|
||||
[Quantity]<-[QuantityPoint]
|
||||
|
||||
[<abstract>PointOrigin]<-[QuantityPoint]
|
||||
[Dimension]<-[PointOrigin]
|
||||
[PointOrigin]<-[PointKind]
|
||||
|
||||
[<abstract>Kind]<-[QuantityKind]
|
||||
[Dimension]<-[Kind]
|
||||
[Quantity]<-[QuantityKind]
|
||||
@@ -60,7 +64,7 @@ derived dimensions. Examples: ``si::dim_time``, ``si::dim_length``, ``si::dim_sp
|
||||
specific representation. Examples: ``quantity<si::dim_time, si::second, int>``,
|
||||
``si::length<si::metre, int>``, ``si::speed<si::kilometre_per_hour>``.
|
||||
|
||||
`QuantityPoint` is an absolute `Quantity` with respect to some origin.
|
||||
`QuantityPoint` is an absolute `Quantity` with respect to an origin.
|
||||
Examples: timestamp (as opposed to duration), absolute temperature
|
||||
(as opposed to temperature difference).
|
||||
|
||||
@@ -68,6 +72,6 @@ Examples: timestamp (as opposed to duration), absolute temperature
|
||||
distance (``horizonal_kind``) and height (``vertical_kind``) are different kinds
|
||||
of a length quantity.
|
||||
|
||||
`QuantityPointKind` is an absolute `QuantityKind` with respect to some origin.
|
||||
`QuantityPointKind` is an absolute `QuantityKind` with respect to an origin.
|
||||
Examples: altitude is a quantity point of ``vertical_kind`` (as opposed to
|
||||
height).
|
||||
|
||||
Reference in New Issue
Block a user