<!DOCTYPE html><htmllang='en'><head><title>[qty.pt.conv]</title><metacharset='UTF-8'/><linkrel='stylesheet'type='text/css'href='14882.css'/><linkrel='stylesheet'type='text/css'href='https://fonts.googleapis.com/css2?family=Noto+Serif'/><linkrel='stylesheet'type='text/css'href='https://fonts.googleapis.com/css2?family=Noto+Sans'/><linkrel='stylesheet'type='text/css'href='https://fonts.googleapis.com/css2?family=Noto+Sans+Mono'/><linkrel='icon'href='icon.png'/><linkrel='stylesheet'type='text/css'href='expanded.css'title='Normal'/><linkrel='alternate stylesheet'type='text/css'href='colored.css'title='Notes and examples colored'/><linkrel='alternate stylesheet'type='text/css'href='normative-only.css'title='Notes and examples hidden'/></head><body><divclass='wrapper'><h1><aclass='secnum'style='min-width:50pt'>5</a> Quantities and units library <aclass='abbr_ref'href='index.html#quantities'>[quantities]</a></h1><h2><aclass='secnum'style='min-width:65pt'>5.7</a> Quantity point <aclass='abbr_ref'href='qty.pt.html#conv'>[qty.pt]</a></h2><h3><aclass='secnum'style='min-width:80pt'>5.7.7</a> Conversions <aclass='abbr_ref'>[qty.pt.conv]</a></h3><divclass='texpara'><divid='lib:quantity_point,point_for'><divid='lib:point_for,quantity_point'><divclass='itemdecl'><divclass='marginalizedparent'><aclass='itemDeclLink'href='#lib:point_for,quantity_point'>🔗</a></div><codeclass='itemdeclcode'><spanclass='keyword'>template</span><spanclass='anglebracket'><</span><aclass='index'id='conceptref:SameAbsolutePointOriginAs'></a><spanclass='texttt'><i>SameAbsolutePointOriginAs</i></span><spanclass='anglebracket'><</span>absolute_point_origin<spanclass='anglebracket'>></span> NewPO<spanclass='anglebracket'>></span>
</code></div></div></div></div><divclass='para'id='1'><divclass='marginalizedparent'><aclass='marginalized'href='#1'>1</a></div><divclass='itemdescr'><divclass='sourceLinkParent'><aclass='sourceLink'href='https://github.com/mpusz/mp-unitse9c5f7236ebfe1b287a5a4a49aaf57fbefa87233/source/quantities.tex#L6063'>#</a></div><divclass='texpara'><divid='1.sentence-1'class='sentence'><i>Effects</i>: Equivalent to:
</code></div></div></div></div></div></div><divclass='para'id='2'><divclass='marginalizedparent'><aclass='marginalized'href='#2'>2</a></div><divclass='itemdescr'><divclass='sourceLinkParent'><aclass='sourceLink'href='https://github.com/mpusz/mp-unitse9c5f7236ebfe1b287a5a4a49aaf57fbefa87233/source/quantities.tex#L6105'>#</a></div><divclass='texpara'><divid='2.sentence-1'class='sentence'>Let <spanclass='texttt'><i>converted-quantity-expr</i></span> be an expression denoting
the function call to the corresponding member of <spanclass='texttt'>quantity_<spanclass='shy'></span>ref_<spanclass='shy'></span>from<spanclass='parenthesis'>(</span>point_<spanclass='shy'></span>origin<spanclass='parenthesis'>)</span></span><aclass='hidden_link'href='#2.sentence-1'>.</a></div></div></div></div><divclass='para'id='3'><divclass='marginalizedparent'><aclass='marginalized'href='#3'>3</a></div><divclass='itemdescr'><divclass='sourceLinkParent'><aclass='sourceLink'href='https://github.com/mpusz/mp-unitse9c5f7236ebfe1b287a5a4a49aaf57fbefa87233/source/quantities.tex#L6109'>#</a></div><divclass='texpara'><divid='3.sentence-1'class='sentence'><i>Effects</i>: Equivalent to:
</span></div></div></div></div><divclass='para'id='4'><divclass='marginalizedparent'><aclass='marginalized'href='#4'>4</a></div><divclass='itemdescr'><divclass='sourceLinkParent'><aclass='sourceLink'href='https://github.com/mpusz/mp-unitse9c5f7236ebfe1b287a5a4a49aaf57fbefa87233/source/quantities.tex#L6116'>#</a></div><divclass='texpara'><divid='4.sentence-1'class='sentence'><i>Remarks</i>: The expression in the <spanclass='textsf'><i>requires-clause</i></span> is equivalent to: