A quantity point

Synopsis

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

template<
    Reference auto R,
    PointOriginFor<get_quantity_spec®> auto PO = default_point_origin®,
    RepresentationOf<get_quantity_spec®> 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

Name

Description

quantity_point [constructor]

Constructors

force_in

force_numerical_value_in

in

numerical_value_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

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

Created with MrDocs