[#mp_units-quantity_point-08-quantity_from-00] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity_point-08.adoc[quantity_point]::quantity_from :relfileprefix: ../../ :mrdocs: `quantity_from` overloads == Synopses Declared in `<mp‐units/framework/quantity_point.h>` Returns the quantity separating this quantity point from a given point origin. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<xref:mp_units/PointOrigin.adoc[PointOrigin] PO2> requires requires(const quantity_point qp) { qp ‐ PO2{}; } [[nodiscard]] constexpr xref:mp_units/Quantity-0c.adoc[Quantity] auto xref:mp_units/quantity_point-08/quantity_from-08.adoc[quantity_from](PO2 po) const; ---- [.small]#xref:mp_units/quantity_point-08/quantity_from-08.adoc[_» more..._]# Returns the quantity separating this quantity point from another quantity point. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<xref:mp_units/QuantityPointOf.adoc[QuantityPointOf<absolute_point_origin>] QP> [[nodiscard]] constexpr xref:mp_units/Quantity-0c.adoc[Quantity] auto xref:mp_units/quantity_point-08/quantity_from-0f.adoc[quantity_from](QP const& qp) const; ---- [.small]#xref:mp_units/quantity_point-08/quantity_from-0f.adoc[_» more..._]# == Return Value * The result of `*this ‐ po`. * The result of `*this ‐ qp`. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *po* | the point origin to measure the offset from | *qp* | the quantity point to measure the offset from |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#