quantity_from overloads
Declared in <mp-units/framework/quantity_point.h>
Returns the quantity separating this quantity point from a given point origin.
template<PointOrigin PO2>
requires requires(const quantity_point qp) { qp - PO2{}; }
[[nodiscard]]
constexpr
Quantity auto
quantity_from(PO2 po) const;
» more...
Returns the quantity separating this quantity point from another quantity point.
template<QuantityPointOf<absolute_point_origin> QP>
[[nodiscard]]
constexpr
Quantity auto
quantity_from(QP const& qp) const;
» more...
*this - po.*this - qp.The return value should not be discarded.
| Name | Description |
|---|---|
| po | the point origin to measure the offset from |
| qp | the quantity point to measure the offset from |