Constructs a quantity point from a quantity, measured from the default point origin.
Declared in <mp-units/framework/quantity_point.h>
template<
typename FwdQ,
QuantityOf<quantity_spec> Q = std::remove_cvref_t<FwdQ>>
requires std::constructible_from<quantity_type, FwdQ> && (point_origin == default_point_origin(R))
[[nodiscard]]
constexpr
explicit
quantity_point(FwdQ&& q);
Only available when point_origin is the default point origin for R.
The return value should not be discarded.
| Name | Description |
|---|---|
| q | the quantity giving the offset from point_origin |