mp_units::relative_point_origin

A point origin defined relative to another quantity point

Synopsis

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

template<
    QuantityPoint auto QP,
    auto Args...>
struct relative_point_origin
    : /* implementation-defined */

Description

Its absolute origin is the absolute origin of QP, and it is displaced from that absolute origin by the value of QP itself, which allows users to define new origins in terms of previously defined quantity points.

Base Classes

NameDescription
/* implementation-defined */

Static Data Members

NameDescription
_absolute_point_origin_ The absolute point origin that QP, and thus this origin, is ultimately measured from
_bounds_ The bounds policy applied to points measured from this origin, if any was provided in Args
_quantity_point_ The quantity point this origin is defined relative to
_quantity_spec_ The quantity specification of this origin, being the strongest of QP's specs

Template Parameters

NameDescription
QPthe quantity point this origin is defined relative to
Argsoptional policy arguments (e.g. a bounds policy)