mp_units::quantity_point::quantity_from

Returns the quantity separating this quantity point from a given point origin.

Synopsis

Declared in <mp-units/framework/quantity_point.h>

template<PointOrigin PO2>
requires requires(const quantity_point qp) { qp - PO2{}; }
[[nodiscard]]
constexpr
Quantity auto
quantity_from(PO2 po) const;

Return Value

The result of *this - po.

NOTE

The return value should not be discarded.

Parameters

NameDescription
pothe point origin to measure the offset from