mp_units::quantity_point::point_for

point_for overloads

Synopses

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

Re-expresses this quantity point relative to another point origin that shares the same absolute point origin.

template</* implementation-defined */ NewPO>
[[nodiscard]]
constexpr
QuantityPointOf<(NewPO{})> auto
point_for(NewPO new_origin) const;
» more...

Re-expresses this quantity point relative to a point origin anchored to a different absolute point origin, via a user-defined frame_projection.

template<
    PointOrigin NewPO,
    typename... Args>
requires detail::HasFrameProjection<absolute_point_origin, detail::get_absolute_point_origin(NewPO{})> &&
             requires(quantity_point<reference, absolute_point_origin, Rep> at_src, Args... args) {
               {
                 frame_projection<absolute_point_origin, detail::get_absolute_point_origin(NewPO{})>(at_src, args...)
               } -> QuantityPointOf<detail::get_absolute_point_origin(NewPO{})>;
             }
[[nodiscard]]
constexpr
QuantityPointOf<(NewPO{})> auto
point_for(
    NewPO new_origin,
    Args&&... args) const;
» more...

Return Value

This quantity point measured from new_origin.

NOTE

The return value should not be discarded.

Parameters

NameDescription
new_originthe point origin to express this quantity point from
argsextra arguments forwarded to the frame_projection between the two absolute point origins