mp_units::absolute_point_origin

A point origin located at the zero point of a quantity specification

Synopsis

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

template<
    QuantitySpec auto QS,
    auto Args...>
struct absolute_point_origin;

Description

Defines the root of a coordinate frame from which quantity points measured in terms of QS are expressed. Optional trailing arguments may specify additional policies, such as bounds checking.

Static Data Members

NameDescription
_bounds_ The bounds policy applied to points measured from this origin, if any was provided in Args
_quantity_spec_ The quantity specification of the quantities measured from this origin

Non-Member Functions

NameDescription
get_quantity_spec
operator+Addition operator
operator+Addition operator
operator-Subtraction operator
operator-Subtraction operator

Template Parameters

NameDescription
QSquantity specification of the quantities measured from this origin
Argsoptional policy arguments (e.g. a bounds policy)