Constructs a quantity point from a quantity measured from another point origin that shares this one's absolute point origin.
Declared in <mp-units/framework/quantity_point.h>
template<
typename FwdQ,
PointOrigin PO2,
Quantity Q = std::remove_cvref_t<FwdQ>>
requires PointOriginFor<PO2, Q::quantity_spec> && std::constructible_from<quantity_type, FwdQ> &&
detail::SameAbsolutePointOriginAs<PO2, PO>
[[nodiscard]]
constexpr
quantity_point(
FwdQ&& q,
PO2 po);
The return value should not be discarded.
| Name | Description |
|---|---|
| q | the quantity giving the offset from po |
| po | the point origin the quantity is measured from |