5
Quantities and units library
[quantities]
5.7
Quantity point
[qty.pt]
5.7.2
Point origin
[qty.pt.orig]
5.7.2.3
Types
[qty.pt.orig.types]
5.7.2.3.2
Relative
[qty.rel.pt.orig]
namespace
mp_units
{
template
<
QuantityPoint
auto
QP
>
struct
relative_point_origin
:
point-origin-interface
{
static
constexpr
QuantityPoint
auto
quantity-point
=
QP;
//
exposition only
static
constexpr
QuantitySpec
auto
quantity-spec
=
see below
;
//
exposition only
static
constexpr
PointOrigin
auto
absolute-point-origin
=
//
exposition only
QP
.
absolute_point_origin;
}
;
}
1
#
A
relative origin
is an origin of a subspace (
IEC 60050, 102-03-03
)
.
A specialization of
relative_
point_
origin
is used as a base type when defining a relative origin
O
.
O
is offset from
QP
.
absolute_
point_
origin
by
QP
.
quantity_
from_
zero
(
)
.
2
#
The member
quantity-spec
is equal to
QP
.
point_
origin
.
quantity-spec
if
QuantityKindSpec
<
decltype
(
auto
(
QP
.
quantity-spec
)
)
>
is satisfied, and to
QP
.
quantity-spec
otherwise
.