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
| Name | Description |
/* implementation-defined */ | |
Type Aliases
Member Functions
Static Member Functions
Data Members
Static Data Members
Deduction Guides
Non-Member Functions
| Name | Description |
ceil | Computes the smallest quantity point with integer representation and unit type To with its number not less than qp |
floor | Computes the largest quantity point with integer representation and unit type To with its number not greater than qp |
isfinite | Determines if a quantity point is finite. |
isinf | Determines if a quantity point is infinite. |
isnan | Determines if a quantity point is a nan. |
lerp | Linear interpolation or extrapolation |
midpoint | Computes the midpoint of two points |
round | Computes the nearest quantity point with integer representation and unit type To to qp |
value_cast | Explicit cast of a quantity point's representation type |
Template Parameters
| Name | Description |
| R | a reference of the quantity point providing all information about quantity properties |
| PO | a type that represents the origin point from which the quantity point is measured from |
| Rep | a type to be used to represent values of a quantity point |