mp_units::quantity_point

A quantity point

Synopsis

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

template<
    Reference auto R,
    PointOriginFor<get_quantity_spec(R)> auto PO = default_point_origin(R),
    RepresentationOf<get_quantity_spec(R)> Rep = double>
class quantity_point
    : public /* implementation-defined */

Description

An absolute quantity measured from an origin.

Base Classes

NameDescription
/* implementation-defined */

Type Aliases

Name
quantity_type
rep

Member Functions

NameDescription
quantity_point [constructor]Constructors
force_in
in
operator++ Increment operators
operator+= Addition assignment operator
operator-- Decrement operators
operator-= Subtraction assignment operator
point_for
quantity_from
quantity_from_zero
quantity_ref_from
operator Conversion operators

Static Member Functions

Name
max
min
zero

Data Members

Name
quantity_from_origin_is_an_implementation_detail_

Static Data Members

Name
absolute_point_origin
dimension
point_origin
quantity_spec
reference
unit

Non-Member Functions

NameDescription
isfiniteDetermines if a quantity point is finite.
isinfDetermines if a quantity point is infinite.
isnanDetermines if a quantity point is a nan.
lerpLinear interpolation or extrapolation
midpointComputes the midpoint of two points
value_castExplicit cast of a quantity point's representation type

Template Parameters

NameDescription
Ra reference of the quantity point providing all information about quantity properties
POa type that represents the origin point from which the quantity point is measured from
Repa type to be used to represent values of a quantity point