mp_units::quantity_point::quantity_point

Converting constructor from a quantity point anchored to a different absolute point origin.

Synopsis

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

template<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 should not be discarded.

Parameters

NameDescription
qpthe source quantity point to convert from