mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-12 14:01:47 +00:00
523 lines
29 KiB
HTML
523 lines
29 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||
<title>Boost.Geometry (aka GGL, Generic Geometry Library)</title>
|
||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||
</head>
|
||
|
||
<table cellpadding="2" width="100%">
|
||
<tbody>
|
||
<tr>
|
||
<td valign="top">
|
||
<img alt="Boost.Geometry" src="images/ggl-logo-big.png" height="80" width="200">
|
||
|
||
</td>
|
||
<td valign="top" align="right">
|
||
<a href="http://www.boost.org">
|
||
<img alt="Boost C++ Libraries" src="images/accepted_by_boost.png" height="80" width="230" border="0">
|
||
</a>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<!-- Generated by Doxygen 1.5.9 -->
|
||
<div class="navigation" id="top">
|
||
<div class="tabs">
|
||
<ul>
|
||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||
<li><a href="modules.html"><span>Modules</span></a></li>
|
||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||
<li><a href="annotated.html"><span>Classes</span></a></li>
|
||
<li><a href="files.html"><span>Files</span></a></li>
|
||
<li><a href="examples.html"><span>Examples</span></a></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="contents">
|
||
<h1>arithmetic: arithmetic operations on points</h1><table border="0" cellpadding="0" cellspacing="0">
|
||
<tr><td></td></tr>
|
||
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
||
<tr><td class="memTemplParams" nowrap colspan="2">template<typename Point1 , typename Point2 > </td></tr>
|
||
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__arithmetic.html#gf595c14ab7034da7d6b67322e0a99870">boost::geometry::add_point</a> (Point1 &p1, Point2 const &p2)</td></tr>
|
||
|
||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> to another. <a href="#gf595c14ab7034da7d6b67322e0a99870"></a><br></td></tr>
|
||
<tr><td class="memTemplParams" nowrap colspan="2">template<typename Point > </td></tr>
|
||
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__arithmetic.html#g7458ae2b1a6267e21b2daac8b35e443e">boost::geometry::add_value</a> (Point &p, typename detail::param< Point >::type value)</td></tr>
|
||
|
||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a value to each coordinate of a <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a>. <a href="#g7458ae2b1a6267e21b2daac8b35e443e"></a><br></td></tr>
|
||
<tr><td class="memTemplParams" nowrap colspan="2">template<typename P1 , typename P2 > </td></tr>
|
||
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">P1 </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__arithmetic.html#gcc50dc087d87f9c791670b811b2b11fb">boost::geometry::cross_product</a> (P1 const &p1, P2 const &p2)</td></tr>
|
||
|
||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Computes the cross product of two vector. <a href="#gcc50dc087d87f9c791670b811b2b11fb"></a><br></td></tr>
|
||
<tr><td class="memTemplParams" nowrap colspan="2">template<typename Point1 , typename Point2 > </td></tr>
|
||
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__arithmetic.html#g72f0f1ea2b53e00c45e6eed40604e270">boost::geometry::divide_point</a> (Point1 &p1, Point2 const &p2)</td></tr>
|
||
|
||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Divides a <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> by another. <a href="#g72f0f1ea2b53e00c45e6eed40604e270"></a><br></td></tr>
|
||
<tr><td class="memTemplParams" nowrap colspan="2">template<typename Point > </td></tr>
|
||
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__arithmetic.html#g6bc24f87156cc3c40e16e0f2fa47280a">boost::geometry::divide_value</a> (Point &p, typename detail::param< Point >::type value)</td></tr>
|
||
|
||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Divides each coordinate of a <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> by a value. <a href="#g6bc24f87156cc3c40e16e0f2fa47280a"></a><br></td></tr>
|
||
<tr><td class="memTemplParams" nowrap colspan="2">template<typename P1 , typename P2 > </td></tr>
|
||
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">select_coordinate_type< P1, P2 ><br class="typebreak">
|
||
::type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__arithmetic.html#gb1c46e8d97f9be972c0d116fbcf9a47d">boost::geometry::dot_product</a> (P1 const &p1, P2 const &p2)</td></tr>
|
||
|
||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Computes the dot product (or scalar product) of 2 vectors (points). <a href="#gb1c46e8d97f9be972c0d116fbcf9a47d"></a><br></td></tr>
|
||
<tr><td class="memTemplParams" nowrap colspan="2">template<typename Point1 , typename Point2 > </td></tr>
|
||
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__arithmetic.html#g6bed4618f2d58404362a7c584d8045e5">boost::geometry::multiply_point</a> (Point1 &p1, Point2 const &p2)</td></tr>
|
||
|
||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Multiplies a <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> by another. <a href="#g6bed4618f2d58404362a7c584d8045e5"></a><br></td></tr>
|
||
<tr><td class="memTemplParams" nowrap colspan="2">template<typename Point > </td></tr>
|
||
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__arithmetic.html#g1486e033b9a991315ce0be491f9c5585">boost::geometry::multiply_value</a> (Point &p, typename detail::param< Point >::type value)</td></tr>
|
||
|
||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Multiplies each coordinate of a <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> by a value. <a href="#g1486e033b9a991315ce0be491f9c5585"></a><br></td></tr>
|
||
<tr><td class="memTemplParams" nowrap colspan="2">template<typename Point1 , typename Point2 > </td></tr>
|
||
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__arithmetic.html#g941f5637305d369b047144faeb2d29b0">boost::geometry::subtract_point</a> (Point1 &p1, Point2 const &p2)</td></tr>
|
||
|
||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Subtracts a <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> to another. <a href="#g941f5637305d369b047144faeb2d29b0"></a><br></td></tr>
|
||
<tr><td class="memTemplParams" nowrap colspan="2">template<typename Point > </td></tr>
|
||
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__arithmetic.html#g931ec2441c2cc157611340c9a6da0182">boost::geometry::subtract_value</a> (Point &p, typename detail::param< Point >::type value)</td></tr>
|
||
|
||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Subtracts a value to each coordinate of a <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a>. <a href="#g931ec2441c2cc157611340c9a6da0182"></a><br></td></tr>
|
||
</table>
|
||
<hr><h2>Function Documentation</h2>
|
||
<a class="anchor" name="g7458ae2b1a6267e21b2daac8b35e443e"></a><!-- doxytag: member="boost::geometry::add_value" ref="g7458ae2b1a6267e21b2daac8b35e443e" args="(Point &p, typename detail::param< Point >::type value)" -->
|
||
<div class="memitem">
|
||
<div class="memproto">
|
||
<div class="memtemplate">
|
||
template<typename Point > </div>
|
||
<table class="memname">
|
||
<tr>
|
||
<td class="memname">void boost::geometry::add_value </td>
|
||
<td>(</td>
|
||
<td class="paramtype">Point & </td>
|
||
<td class="paramname"> <em>p</em>, </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="paramkey"></td>
|
||
<td></td>
|
||
<td class="paramtype">typename detail::param< Point >::type </td>
|
||
<td class="paramname"> <em>value</em></td><td> </td>
|
||
</tr>
|
||
<tr>
|
||
<td></td>
|
||
<td>)</td>
|
||
<td></td><td></td><td></td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<div class="memdoc">
|
||
|
||
<p>
|
||
Adds a value to each coordinate of a <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a>.
|
||
<p>
|
||
<dl compact><dt><b>Parameters:</b></dt><dd>
|
||
<table border="0" cellspacing="2" cellpadding="0">
|
||
<tr><td valign="top"></td><td valign="top"><em>p</em> </td><td><a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> </td></tr>
|
||
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>value to add </td></tr>
|
||
</table>
|
||
</dl>
|
||
|
||
<p>Definition at line <a class="el" href="arithmetic_8hpp_source.html#l00086">86</a> of file <a class="el" href="arithmetic_8hpp_source.html">arithmetic.hpp</a>.</p>
|
||
|
||
</div>
|
||
</div><p>
|
||
<a class="anchor" name="gf595c14ab7034da7d6b67322e0a99870"></a><!-- doxytag: member="boost::geometry::add_point" ref="gf595c14ab7034da7d6b67322e0a99870" args="(Point1 &p1, Point2 const &p2)" -->
|
||
<div class="memitem">
|
||
<div class="memproto">
|
||
<div class="memtemplate">
|
||
template<typename Point1 , typename Point2 > </div>
|
||
<table class="memname">
|
||
<tr>
|
||
<td class="memname">void boost::geometry::add_point </td>
|
||
<td>(</td>
|
||
<td class="paramtype">Point1 & </td>
|
||
<td class="paramname"> <em>p1</em>, </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="paramkey"></td>
|
||
<td></td>
|
||
<td class="paramtype">Point2 const & </td>
|
||
<td class="paramname"> <em>p2</em></td><td> </td>
|
||
</tr>
|
||
<tr>
|
||
<td></td>
|
||
<td>)</td>
|
||
<td></td><td></td><td></td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<div class="memdoc">
|
||
|
||
<p>
|
||
Adds a <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> to another.
|
||
<p>
|
||
The coordinates of the second <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> will be added to those of the first <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a>. The second <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> is not modified. <dl compact><dt><b>Parameters:</b></dt><dd>
|
||
<table border="0" cellspacing="2" cellpadding="0">
|
||
<tr><td valign="top"></td><td valign="top"><em>p1</em> </td><td>first <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> </td></tr>
|
||
<tr><td valign="top"></td><td valign="top"><em>p2</em> </td><td>second <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> </td></tr>
|
||
</table>
|
||
</dl>
|
||
|
||
<p>Definition at line <a class="el" href="arithmetic_8hpp_source.html#l00102">102</a> of file <a class="el" href="arithmetic_8hpp_source.html">arithmetic.hpp</a>.</p>
|
||
|
||
</div>
|
||
</div><p>
|
||
<a class="anchor" name="g931ec2441c2cc157611340c9a6da0182"></a><!-- doxytag: member="boost::geometry::subtract_value" ref="g931ec2441c2cc157611340c9a6da0182" args="(Point &p, typename detail::param< Point >::type value)" -->
|
||
<div class="memitem">
|
||
<div class="memproto">
|
||
<div class="memtemplate">
|
||
template<typename Point > </div>
|
||
<table class="memname">
|
||
<tr>
|
||
<td class="memname">void boost::geometry::subtract_value </td>
|
||
<td>(</td>
|
||
<td class="paramtype">Point & </td>
|
||
<td class="paramname"> <em>p</em>, </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="paramkey"></td>
|
||
<td></td>
|
||
<td class="paramtype">typename detail::param< Point >::type </td>
|
||
<td class="paramname"> <em>value</em></td><td> </td>
|
||
</tr>
|
||
<tr>
|
||
<td></td>
|
||
<td>)</td>
|
||
<td></td><td></td><td></td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<div class="memdoc">
|
||
|
||
<p>
|
||
Subtracts a value to each coordinate of a <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a>.
|
||
<p>
|
||
<dl compact><dt><b>Parameters:</b></dt><dd>
|
||
<table border="0" cellspacing="2" cellpadding="0">
|
||
<tr><td valign="top"></td><td valign="top"><em>p</em> </td><td><a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> </td></tr>
|
||
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>value to subtract </td></tr>
|
||
</table>
|
||
</dl>
|
||
|
||
<p>Definition at line <a class="el" href="arithmetic_8hpp_source.html#l00118">118</a> of file <a class="el" href="arithmetic_8hpp_source.html">arithmetic.hpp</a>.</p>
|
||
|
||
</div>
|
||
</div><p>
|
||
<a class="anchor" name="g941f5637305d369b047144faeb2d29b0"></a><!-- doxytag: member="boost::geometry::subtract_point" ref="g941f5637305d369b047144faeb2d29b0" args="(Point1 &p1, Point2 const &p2)" -->
|
||
<div class="memitem">
|
||
<div class="memproto">
|
||
<div class="memtemplate">
|
||
template<typename Point1 , typename Point2 > </div>
|
||
<table class="memname">
|
||
<tr>
|
||
<td class="memname">void boost::geometry::subtract_point </td>
|
||
<td>(</td>
|
||
<td class="paramtype">Point1 & </td>
|
||
<td class="paramname"> <em>p1</em>, </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="paramkey"></td>
|
||
<td></td>
|
||
<td class="paramtype">Point2 const & </td>
|
||
<td class="paramname"> <em>p2</em></td><td> </td>
|
||
</tr>
|
||
<tr>
|
||
<td></td>
|
||
<td>)</td>
|
||
<td></td><td></td><td></td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<div class="memdoc">
|
||
|
||
<p>
|
||
Subtracts a <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> to another.
|
||
<p>
|
||
The coordinates of the second <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> will be subtracted to those of the first <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a>. The second <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> is not modified. <dl compact><dt><b>Parameters:</b></dt><dd>
|
||
<table border="0" cellspacing="2" cellpadding="0">
|
||
<tr><td valign="top"></td><td valign="top"><em>p1</em> </td><td>first <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> </td></tr>
|
||
<tr><td valign="top"></td><td valign="top"><em>p2</em> </td><td>second <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> </td></tr>
|
||
</table>
|
||
</dl>
|
||
|
||
<p>Definition at line <a class="el" href="arithmetic_8hpp_source.html#l00134">134</a> of file <a class="el" href="arithmetic_8hpp_source.html">arithmetic.hpp</a>.</p>
|
||
|
||
</div>
|
||
</div><p>
|
||
<a class="anchor" name="g1486e033b9a991315ce0be491f9c5585"></a><!-- doxytag: member="boost::geometry::multiply_value" ref="g1486e033b9a991315ce0be491f9c5585" args="(Point &p, typename detail::param< Point >::type value)" -->
|
||
<div class="memitem">
|
||
<div class="memproto">
|
||
<div class="memtemplate">
|
||
template<typename Point > </div>
|
||
<table class="memname">
|
||
<tr>
|
||
<td class="memname">void boost::geometry::multiply_value </td>
|
||
<td>(</td>
|
||
<td class="paramtype">Point & </td>
|
||
<td class="paramname"> <em>p</em>, </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="paramkey"></td>
|
||
<td></td>
|
||
<td class="paramtype">typename detail::param< Point >::type </td>
|
||
<td class="paramname"> <em>value</em></td><td> </td>
|
||
</tr>
|
||
<tr>
|
||
<td></td>
|
||
<td>)</td>
|
||
<td></td><td></td><td></td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<div class="memdoc">
|
||
|
||
<p>
|
||
Multiplies each coordinate of a <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> by a value.
|
||
<p>
|
||
<dl compact><dt><b>Parameters:</b></dt><dd>
|
||
<table border="0" cellspacing="2" cellpadding="0">
|
||
<tr><td valign="top"></td><td valign="top"><em>p</em> </td><td><a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> </td></tr>
|
||
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>value to multiply by </td></tr>
|
||
</table>
|
||
</dl>
|
||
|
||
<p>Definition at line <a class="el" href="arithmetic_8hpp_source.html#l00150">150</a> of file <a class="el" href="arithmetic_8hpp_source.html">arithmetic.hpp</a>.</p>
|
||
|
||
</div>
|
||
</div><p>
|
||
<a class="anchor" name="g6bed4618f2d58404362a7c584d8045e5"></a><!-- doxytag: member="boost::geometry::multiply_point" ref="g6bed4618f2d58404362a7c584d8045e5" args="(Point1 &p1, Point2 const &p2)" -->
|
||
<div class="memitem">
|
||
<div class="memproto">
|
||
<div class="memtemplate">
|
||
template<typename Point1 , typename Point2 > </div>
|
||
<table class="memname">
|
||
<tr>
|
||
<td class="memname">void boost::geometry::multiply_point </td>
|
||
<td>(</td>
|
||
<td class="paramtype">Point1 & </td>
|
||
<td class="paramname"> <em>p1</em>, </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="paramkey"></td>
|
||
<td></td>
|
||
<td class="paramtype">Point2 const & </td>
|
||
<td class="paramname"> <em>p2</em></td><td> </td>
|
||
</tr>
|
||
<tr>
|
||
<td></td>
|
||
<td>)</td>
|
||
<td></td><td></td><td></td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<div class="memdoc">
|
||
|
||
<p>
|
||
Multiplies a <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> by another.
|
||
<p>
|
||
The coordinates of the second <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> will be multiplied by those of the first <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a>. The second <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> is not modified. <dl compact><dt><b>Parameters:</b></dt><dd>
|
||
<table border="0" cellspacing="2" cellpadding="0">
|
||
<tr><td valign="top"></td><td valign="top"><em>p1</em> </td><td>first <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> </td></tr>
|
||
<tr><td valign="top"></td><td valign="top"><em>p2</em> </td><td>second <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> </td></tr>
|
||
</table>
|
||
</dl>
|
||
<dl class="note" compact><dt><b>Note:</b></dt><dd>This is *not* a dot, cross or wedge product. It is a mere field-by-field multiplication. </dd></dl>
|
||
|
||
<p>Definition at line <a class="el" href="arithmetic_8hpp_source.html#l00167">167</a> of file <a class="el" href="arithmetic_8hpp_source.html">arithmetic.hpp</a>.</p>
|
||
|
||
</div>
|
||
</div><p>
|
||
<a class="anchor" name="g6bc24f87156cc3c40e16e0f2fa47280a"></a><!-- doxytag: member="boost::geometry::divide_value" ref="g6bc24f87156cc3c40e16e0f2fa47280a" args="(Point &p, typename detail::param< Point >::type value)" -->
|
||
<div class="memitem">
|
||
<div class="memproto">
|
||
<div class="memtemplate">
|
||
template<typename Point > </div>
|
||
<table class="memname">
|
||
<tr>
|
||
<td class="memname">void boost::geometry::divide_value </td>
|
||
<td>(</td>
|
||
<td class="paramtype">Point & </td>
|
||
<td class="paramname"> <em>p</em>, </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="paramkey"></td>
|
||
<td></td>
|
||
<td class="paramtype">typename detail::param< Point >::type </td>
|
||
<td class="paramname"> <em>value</em></td><td> </td>
|
||
</tr>
|
||
<tr>
|
||
<td></td>
|
||
<td>)</td>
|
||
<td></td><td></td><td></td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<div class="memdoc">
|
||
|
||
<p>
|
||
Divides each coordinate of a <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> by a value.
|
||
<p>
|
||
<dl compact><dt><b>Parameters:</b></dt><dd>
|
||
<table border="0" cellspacing="2" cellpadding="0">
|
||
<tr><td valign="top"></td><td valign="top"><em>p</em> </td><td><a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> </td></tr>
|
||
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>value to divide by </td></tr>
|
||
</table>
|
||
</dl>
|
||
|
||
<p>Definition at line <a class="el" href="arithmetic_8hpp_source.html#l00183">183</a> of file <a class="el" href="arithmetic_8hpp_source.html">arithmetic.hpp</a>.</p>
|
||
|
||
</div>
|
||
</div><p>
|
||
<a class="anchor" name="g72f0f1ea2b53e00c45e6eed40604e270"></a><!-- doxytag: member="boost::geometry::divide_point" ref="g72f0f1ea2b53e00c45e6eed40604e270" args="(Point1 &p1, Point2 const &p2)" -->
|
||
<div class="memitem">
|
||
<div class="memproto">
|
||
<div class="memtemplate">
|
||
template<typename Point1 , typename Point2 > </div>
|
||
<table class="memname">
|
||
<tr>
|
||
<td class="memname">void boost::geometry::divide_point </td>
|
||
<td>(</td>
|
||
<td class="paramtype">Point1 & </td>
|
||
<td class="paramname"> <em>p1</em>, </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="paramkey"></td>
|
||
<td></td>
|
||
<td class="paramtype">Point2 const & </td>
|
||
<td class="paramname"> <em>p2</em></td><td> </td>
|
||
</tr>
|
||
<tr>
|
||
<td></td>
|
||
<td>)</td>
|
||
<td></td><td></td><td></td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<div class="memdoc">
|
||
|
||
<p>
|
||
Divides a <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> by another.
|
||
<p>
|
||
The coordinates of the second <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> will be divided by those of the first <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a>. The second <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> is not modified. <dl compact><dt><b>Parameters:</b></dt><dd>
|
||
<table border="0" cellspacing="2" cellpadding="0">
|
||
<tr><td valign="top"></td><td valign="top"><em>p1</em> </td><td>first <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> </td></tr>
|
||
<tr><td valign="top"></td><td valign="top"><em>p2</em> </td><td>second <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> </td></tr>
|
||
</table>
|
||
</dl>
|
||
|
||
<p>Definition at line <a class="el" href="arithmetic_8hpp_source.html#l00199">199</a> of file <a class="el" href="arithmetic_8hpp_source.html">arithmetic.hpp</a>.</p>
|
||
|
||
</div>
|
||
</div><p>
|
||
<a class="anchor" name="gcc50dc087d87f9c791670b811b2b11fb"></a><!-- doxytag: member="boost::geometry::cross_product" ref="gcc50dc087d87f9c791670b811b2b11fb" args="(P1 const &p1, P2 const &p2)" -->
|
||
<div class="memitem">
|
||
<div class="memproto">
|
||
<div class="memtemplate">
|
||
template<typename P1 , typename P2 > </div>
|
||
<table class="memname">
|
||
<tr>
|
||
<td class="memname">P1 boost::geometry::cross_product </td>
|
||
<td>(</td>
|
||
<td class="paramtype">P1 const & </td>
|
||
<td class="paramname"> <em>p1</em>, </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="paramkey"></td>
|
||
<td></td>
|
||
<td class="paramtype">P2 const & </td>
|
||
<td class="paramname"> <em>p2</em></td><td> </td>
|
||
</tr>
|
||
<tr>
|
||
<td></td>
|
||
<td>)</td>
|
||
<td></td><td></td><td></td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<div class="memdoc">
|
||
|
||
<p>
|
||
Computes the cross product of two vector.
|
||
<p>
|
||
Both vectors shall be of the same type. This type also determines type of result vector.<p>
|
||
<dl compact><dt><b>Parameters:</b></dt><dd>
|
||
<table border="0" cellspacing="2" cellpadding="0">
|
||
<tr><td valign="top"></td><td valign="top"><em>p1</em> </td><td>first vector </td></tr>
|
||
<tr><td valign="top"></td><td valign="top"><em>p2</em> </td><td>second vector </td></tr>
|
||
</table>
|
||
</dl>
|
||
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the cross product vector </dd></dl>
|
||
|
||
<p>Definition at line <a class="el" href="cross__product_8hpp_source.html#l00091">91</a> of file <a class="el" href="cross__product_8hpp_source.html">cross_product.hpp</a>.</p>
|
||
|
||
</div>
|
||
</div><p>
|
||
<a class="anchor" name="gb1c46e8d97f9be972c0d116fbcf9a47d"></a><!-- doxytag: member="boost::geometry::dot_product" ref="gb1c46e8d97f9be972c0d116fbcf9a47d" args="(P1 const &p1, P2 const &p2)" -->
|
||
<div class="memitem">
|
||
<div class="memproto">
|
||
<div class="memtemplate">
|
||
template<typename P1 , typename P2 > </div>
|
||
<table class="memname">
|
||
<tr>
|
||
<td class="memname">select_coordinate_type<P1, P2>::type boost::geometry::dot_product </td>
|
||
<td>(</td>
|
||
<td class="paramtype">P1 const & </td>
|
||
<td class="paramname"> <em>p1</em>, </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="paramkey"></td>
|
||
<td></td>
|
||
<td class="paramtype">P2 const & </td>
|
||
<td class="paramname"> <em>p2</em></td><td> </td>
|
||
</tr>
|
||
<tr>
|
||
<td></td>
|
||
<td>)</td>
|
||
<td></td><td></td><td></td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<div class="memdoc">
|
||
|
||
<p>
|
||
Computes the dot product (or scalar product) of 2 vectors (points).
|
||
<p>
|
||
<dl compact><dt><b>Parameters:</b></dt><dd>
|
||
<table border="0" cellspacing="2" cellpadding="0">
|
||
<tr><td valign="top"></td><td valign="top"><em>p1</em> </td><td>first <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> </td></tr>
|
||
<tr><td valign="top"></td><td valign="top"><em>p2</em> </td><td>second <a class="el" href="classboost_1_1geometry_1_1point.html" title="Basic point class, having coordinates defined in a neutral way.">point</a> </td></tr>
|
||
</table>
|
||
</dl>
|
||
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the dot product </dd></dl>
|
||
|
||
<p>Definition at line <a class="el" href="dot__product_8hpp_source.html#l00059">59</a> of file <a class="el" href="dot__product_8hpp_source.html">dot_product.hpp</a>.</p>
|
||
|
||
</div>
|
||
</div><p>
|
||
</div>
|
||
<hr size="1">
|
||
<table width="100%">
|
||
<tbody>
|
||
<tr>
|
||
<td align="left"><small>
|
||
<p>December 1, 2009</p>
|
||
</small></td>
|
||
<td align="right">
|
||
<small>Copyright <20> 1995-2009 Barend Gehrels, Geodan, Amsterdam<br>
|
||
Copyright <20> 2008-2009 Bruno Lalande, Paris<br>
|
||
Copyright <20> 2009 Mateusz Loskot, Cadcorp, London<br>
|
||
</small>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<address style="text-align: right;"><small>
|
||
Documentation is generated by <a href="http://www.doxygen.org/index.html">Doxygen</a>
|
||
</small></address>
|
||
</body>
|
||
</html>
|