[#mp_units-quantity_point-08-2constructor-09] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity_point-08.adoc[quantity_point]::quantity_point :relfileprefix: ../../ :mrdocs: Converting constructor from a quantity point anchored to a different absolute point origin. == Synopsis Declared in `<mp‐units/framework/quantity_point.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<xref:mp_units/QuantityPoint.adoc[QuantityPoint] QP> requires (!QuantityPointOf<QP, absolute_point_origin>) && requires(const QP& src) { { src.point_for(point_origin) } ‐> QuantityPointOf<point_origin>; quantity_type{src.point_for(point_origin) ‐ point_origin}; } [[nodiscard]] constexpr explicit quantity_point(QP const& qp); ---- == Description Re‐expresses `qp` at `point_origin` via `point_for`, which requires a `frame_projection` between the two absolute point origins to be defined. == Return Value [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *qp* | the source quantity point to convert from |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#