[#mp_units-quantity_point-08-quantity_from-08] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity_point-08.adoc[quantity_point]::quantity_from :relfileprefix: ../../ :mrdocs: Returns the quantity separating this quantity point from a given point origin. == Synopsis Declared in `<mp‐units/framework/quantity_point.h>` [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 quantity_from(PO2 po) const; ---- == Return Value The result of `*this ‐ po`. [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 |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#