<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Andrea,</p>
<p>Nice shortcut - and use of the modulus operator! Now the calculation is really short!</p>
<p>Nevertheless it would be kind of nice to have a QGIS expression function to convert azimuth into math angles. I assume that Christine wouldn't be the only one looking for this calculation.</p>
<p>Christine - do you want to create a feature request for such an expression function at <a href="https://github.com/qgis/QGIS/issues">https://github.com/qgis/QGIS/issues</a> ?</p>
<p>Andreas</p>
<p id="reply-intro">On 2021-12-07 08:49, Andrea Giudiceandrea wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<div>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="v1msgHead" style="color: #000000; font-family: helvetica, arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">
<p class="v1darkgray v1font13" style="font-size: 13px; color: #666666;"><span class="v1sender v1pipe" style="margin-right: 0.5em; border-right: 1px solid #dddddd; padding-right: 0.8em;"><a style="color: #666666; text-decoration: none;" href="https://www.mail-archive.com/search?l=qgis-user@lists.osgeo.org&q=from:%22Richard+Greenwood%22" target="_blank" rel="noopener noreferrer"><span><span>Richard Greenwood</span></span></a></span><span> </span><span class="v1date"><a style="color: #666666; text-decoration: none;" href="https://www.mail-archive.com/search?l=qgis-user@lists.osgeo.org&q=date:20211206" target="_blank" rel="noopener noreferrer">Mon, 06 Dec 2021 10:57:06 -0800</a></span></p>
</div>
<div class="v1msgBody" style="color: #000000; font-family: helvetica, arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">
<pre style="font-family: courier, 'courier new', monospace; font-size: 1em; white-space: pre-wrap; overflow-wrap: break-word; margin: 0px;">g = (450-m) - int((450-m) / 360) * 360
where m = mathematical angle (0 east, anti-clockwise)
and g = geographic angle (0 north, clockwise)</pre>
</div>
</blockquote>
<br />Which is equivalent to:<br /><br />g = (450-m) % 360<br /><br /><br />Best regards.<br /><br />Andrea Giudiceandrea</div>
</div>
<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br />Qgis-user mailing list<br /><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br />List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br />Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
</blockquote>
<p><br /></p>

</body></html>