[#mp_units-quantity_point-08-2constructor-02] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity_point-08.adoc[quantity_point]::quantity_point :relfileprefix: ../../ :mrdocs: Constructs a quantity point from a quantity measured from this point's own origin. == Synopsis Declared in `<mp‐units/framework/quantity_point.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename FwdQ, xref:mp_units/QuantityOf.adoc[QuantityOf<quantity_spec>] Q = std::remove_cvref_t<FwdQ>> requires std::constructible_from<quantity_type, FwdQ> [[nodiscard]] constexpr quantity_point( FwdQ&& q, decltype(PO) po); ---- == Return Value [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *q* | the quantity giving the offset from `point_origin` | *po* | the point origin the quantity is measured from, equal to `point_origin` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#