<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — How to Rotate Drawings??]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=2009</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2009&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to Rotate Drawings??.]]></description>
		<lastBuildDate>Thu, 04 Aug 2022 10:20:55 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to Rotate Drawings??]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8482#p8482</link>
			<description><![CDATA[<p>There is no way to adjust the height here.<br />You can work around this by taking a drawing container or drawing instance and increasing transform.position.y.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 04 Aug 2022 10:20:55 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8482#p8482</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to Rotate Drawings??]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8481#p8481</link>
			<description><![CDATA[<p>Thanks! One more thing, is there any way to adjust the drawings height??</p><p>For now I am using the transform.position. But if there is a way to adjust the height via Onlinemaps, I&#039;ll be happy to listen!!</p><br /><p>*Update: it didn&#039;t change the angle of the drawing in any way. if i also use the </p><div class="codebox"><pre><code> var ang, var cos, var sin </code></pre></div><p> it will teleport outside the map and also became a line</p>]]></description>
			<author><![CDATA[null@example.com (moonflow123)]]></author>
			<pubDate>Thu, 04 Aug 2022 01:31:26 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8481#p8481</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to Rotate Drawings??]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8480#p8480</link>
			<description><![CDATA[<p>Hello.</p><div class="codebox"><pre><code>var heading = (step * i + someDegreeOffset) * OnlineMapsUtils.Deg2Rad;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 02 Aug 2022 10:04:23 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8480#p8480</guid>
		</item>
		<item>
			<title><![CDATA[How to Rotate Drawings??]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8479#p8479</link>
			<description><![CDATA[<p>Hi, I wanted to know if I can rotate my drawings. I have made an Ellipse and wanted to rotate it in any degree, is there any tools in OnlineMaps for that function??</p><p>For now I tried using this code but it didn&#039;t work as intended</p><div class="codebox"><pre><code>        for(int i = 0; i &lt; segments; i++)
        {
            var heading = (step * i) * OnlineMapsUtils.Deg2Rad;
            var px = (r * Math.Cos(heading)) + tx1;
            var py = (r / 2 * Math.Sin(heading)) + ty1;

            var ang = angle * OnlineMapsUtils.Deg2Rad;
            var cos = Math.Cos(ang);
            var sin = Math.Sin(ang);

            px = (px * cos) - (py * sin);
            py = (px * sin) + (py * cos);
            
            map.projection.TileToCoordinates(px, py, 20, out lng, out lat);
            points.Add(new Vector2((float)lng, (float)lat));
        }</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (moonflow123)]]></author>
			<pubDate>Tue, 02 Aug 2022 09:59:53 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8479#p8479</guid>
		</item>
	</channel>
</rss>
