Constructs a quantity point from a quantity measured from this point's own origin.

Synopsis

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

template<
    typename FwdQ,
    QuantityOf<quantity_spec> Q = std::remove_cvref_t<FwdQ>>
requires std::constructible_from<quantity_type, FwdQ>
[[nodiscard]]
constexpr
quantity_point(
    FwdQ&& q,
    decltype(PO) po);

Return Value

Note

The return value should not be discarded.

Parameters

Name

Description

q

the quantity giving the offset from point_origin

po

the point origin the quantity is measured from, equal to point_origin

Created with MrDocs