1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>divide_value</title> 5<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="../../../index.html" title="Chapter 1. Geometry"> 8<link rel="up" href="../arithmetic.html" title="Arithmetic"> 9<link rel="prev" href="divide_point.html" title="divide_point"> 10<link rel="next" href="dot_product.html" title="dot_product"> 11</head> 12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 13<table cellpadding="2" width="100%"><tr> 14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> 15<td align="center"><a href="../../../../../../../index.html">Home</a></td> 16<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> 17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 19<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> 20</tr></table> 21<hr> 22<div class="spirit-nav"> 23<a accesskey="p" href="divide_point.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../arithmetic.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="dot_product.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="section"> 26<div class="titlepage"><div><div><h4 class="title"> 27<a name="geometry.reference.arithmetic.divide_value"></a><a class="link" href="divide_value.html" title="divide_value">divide_value</a> 28</h4></div></div></div> 29<p> 30 <a class="indexterm" name="idm45635685763088"></a> 31Divides each coordinate of the same point by a value. 32 </p> 33<h6> 34<a name="geometry.reference.arithmetic.divide_value.h0"></a> 35 <span class="phrase"><a name="geometry.reference.arithmetic.divide_value.synopsis"></a></span><a class="link" href="divide_value.html#geometry.reference.arithmetic.divide_value.synopsis">Synopsis</a> 36 </h6> 37<p> 38</p> 39<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Point</span><span class="special">></span> 40<span class="keyword">void</span> <span class="identifier">divide_value</span><span class="special">(</span><span class="identifier">Point</span> <span class="special">&</span> <span class="identifier">p</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">detail</span><span class="special">::</span><span class="identifier">param</span><span class="special"><</span> <span class="identifier">Point</span> <span class="special">>::</span><span class="identifier">type</span> <span class="identifier">value</span><span class="special">)</span></pre> 41<p> 42 </p> 43<h6> 44<a name="geometry.reference.arithmetic.divide_value.h1"></a> 45 <span class="phrase"><a name="geometry.reference.arithmetic.divide_value.parameters"></a></span><a class="link" href="divide_value.html#geometry.reference.arithmetic.divide_value.parameters">Parameters</a> 46 </h6> 47<div class="informaltable"><table class="table"> 48<colgroup> 49<col> 50<col> 51<col> 52<col> 53</colgroup> 54<thead><tr> 55<th> 56 <p> 57 Type 58 </p> 59 </th> 60<th> 61 <p> 62 Concept 63 </p> 64 </th> 65<th> 66 <p> 67 Name 68 </p> 69 </th> 70<th> 71 <p> 72 Description 73 </p> 74 </th> 75</tr></thead> 76<tbody> 77<tr> 78<td> 79 <p> 80 Point & 81 </p> 82 </td> 83<td> 84 <p> 85 Any type fulfilling a Point Concept 86 </p> 87 </td> 88<td> 89 <p> 90 p 91 </p> 92 </td> 93<td> 94 <p> 95 point 96 </p> 97 </td> 98</tr> 99<tr> 100<td> 101 <p> 102 typename detail::param< Point >::type 103 </p> 104 </td> 105<td> 106 </td> 107<td> 108 <p> 109 value 110 </p> 111 </td> 112<td> 113 <p> 114 value to divide by 115 </p> 116 </td> 117</tr> 118</tbody> 119</table></div> 120<h6> 121<a name="geometry.reference.arithmetic.divide_value.h2"></a> 122 <span class="phrase"><a name="geometry.reference.arithmetic.divide_value.header"></a></span><a class="link" href="divide_value.html#geometry.reference.arithmetic.divide_value.header">Header</a> 123 </h6> 124<p> 125 Either 126 </p> 127<p> 128 <code class="computeroutput"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">geometry</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code> 129 </p> 130<p> 131 Or 132 </p> 133<p> 134 <code class="computeroutput"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">geometry</span><span class="special">/</span><span class="identifier">arithmetic</span><span class="special">/</span><span class="identifier">arithmetic</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code> 135 </p> 136</div> 137<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 138<td align="left"></td> 139<td align="right"><div class="copyright-footer">Copyright © 2009-2019 Barend Gehrels, Bruno Lalande, Mateusz Loskot, Adam 140 Wulkiewicz, Oracle and/or its affiliates<p> 141 Distributed under the Boost Software License, Version 1.0. (See accompanying 142 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) 143 </p> 144</div></td> 145</tr></table> 146<hr> 147<div class="spirit-nav"> 148<a accesskey="p" href="divide_point.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../arithmetic.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="dot_product.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 149</div> 150</body> 151</html> 152