A quantity point

Synopsis

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

template<
    Reference auto R,
    PointOriginFor<get_quantity_spec®> auto PO,
    RepresentationOf<get_quantity_spec®> Rep>
class quantity_point;

Types

Member Functions

Name

Description

quantity_point [constructor]

Constructors

~quantity_point [destructor]

Destructor

operator=

Assignment operators

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 [deleted]

`operator `

Conversion operators

Static Member Functions

Name

max

min

Data Members

Static Data Members

Friends

Non-Member Functions

Name

Description

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

value_cast

Explicit cast of a quantity point's representation type

Description

An absolute quantity measured from an origin.

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