1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>set_from_radian</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="../set.html" title="set"> 9<link rel="prev" href="set_2_with_index.html" title="set (with index)"> 10<link rel="next" href="set_from_radian_2_0.html" title="set_from_radian"> 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="set_2_with_index.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../set.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="set_from_radian_2_0.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="section"> 26<div class="titlepage"><div><div><h5 class="title"> 27<a name="geometry.reference.access.set.set_from_radian_2"></a><a class="link" href="set_from_radian_2.html" title="set_from_radian">set_from_radian</a> 28</h5></div></div></div> 29<p> 30 <a class="indexterm" name="idm45635712230208"></a> 31set coordinate value (in radian) to a point 32 </p> 33<h6> 34<a name="geometry.reference.access.set.set_from_radian_2.h0"></a> 35 <span class="phrase"><a name="geometry.reference.access.set.set_from_radian_2.description"></a></span><a class="link" href="set_from_radian_2.html#geometry.reference.access.set.set_from_radian_2.description">Description</a> 36 </h6> 37<p> 38 Coordinate value will be set correctly, if coordinate system of point 39 is in Degree, Radian value will be converted to Degree 40 </p> 41<h6> 42<a name="geometry.reference.access.set.set_from_radian_2.h1"></a> 43 <span class="phrase"><a name="geometry.reference.access.set.set_from_radian_2.synopsis"></a></span><a class="link" href="set_from_radian_2.html#geometry.reference.access.set.set_from_radian_2.synopsis">Synopsis</a> 44 </h6> 45<p> 46</p> 47<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">Dimension</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Geometry</span><span class="special">></span> 48<span class="keyword">void</span> <span class="identifier">set_from_radian</span><span class="special">(</span><span class="identifier">Geometry</span> <span class="special">&</span> <span class="identifier">geometry</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">fp_coordinate_type</span><span class="special"><</span> <span class="identifier">Geometry</span> <span class="special">>::</span><span class="identifier">type</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">radians</span><span class="special">)</span></pre> 49<p> 50 </p> 51<h6> 52<a name="geometry.reference.access.set.set_from_radian_2.h2"></a> 53 <span class="phrase"><a name="geometry.reference.access.set.set_from_radian_2.parameters"></a></span><a class="link" href="set_from_radian_2.html#geometry.reference.access.set.set_from_radian_2.parameters">Parameters</a> 54 </h6> 55<div class="informaltable"><table class="table"> 56<colgroup> 57<col> 58<col> 59<col> 60<col> 61</colgroup> 62<thead><tr> 63<th> 64 <p> 65 Type 66 </p> 67 </th> 68<th> 69 <p> 70 Concept 71 </p> 72 </th> 73<th> 74 <p> 75 Name 76 </p> 77 </th> 78<th> 79 <p> 80 Description 81 </p> 82 </th> 83</tr></thead> 84<tbody> 85<tr> 86<td> 87 <p> 88 Dimension 89 </p> 90 </td> 91<td> 92 <p> 93 dimension 94 </p> 95 </td> 96<td> 97 <p> 98 - 99 </p> 100 </td> 101<td> 102 <p> 103 Must be specified 104 </p> 105 </td> 106</tr> 107<tr> 108<td> 109 <p> 110 Geometry & 111 </p> 112 </td> 113<td> 114 <p> 115 geometry 116 </p> 117 </td> 118<td> 119 <p> 120 geometry 121 </p> 122 </td> 123<td> 124 <p> 125 geometry to assign coordinate to 126 </p> 127 </td> 128</tr> 129<tr> 130<td> 131 <p> 132 typename fp_coordinate_type< Geometry >::type const & 133 </p> 134 </td> 135<td> 136 </td> 137<td> 138 <p> 139 radians 140 </p> 141 </td> 142<td> 143 <p> 144 coordinate value to assign 145 </p> 146 </td> 147</tr> 148</tbody> 149</table></div> 150<h6> 151<a name="geometry.reference.access.set.set_from_radian_2.h3"></a> 152 <span class="phrase"><a name="geometry.reference.access.set.set_from_radian_2.header"></a></span><a class="link" href="set_from_radian_2.html#geometry.reference.access.set.set_from_radian_2.header">Header</a> 153 </h6> 154<p> 155 Either 156 </p> 157<p> 158 <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> 159 </p> 160<p> 161 Or 162 </p> 163<p> 164 <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">core</span><span class="special">/</span><span class="identifier">radian_access</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code> 165 </p> 166</div> 167<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 168<td align="left"></td> 169<td align="right"><div class="copyright-footer">Copyright © 2009-2019 Barend Gehrels, Bruno Lalande, Mateusz Loskot, Adam 170 Wulkiewicz, Oracle and/or its affiliates<p> 171 Distributed under the Boost Software License, Version 1.0. (See accompanying 172 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>) 173 </p> 174</div></td> 175</tr></table> 176<hr> 177<div class="spirit-nav"> 178<a accesskey="p" href="set_2_with_index.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../set.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="set_from_radian_2_0.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> 179</div> 180</body> 181</html> 182