<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Verify that the object is out of scope]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=875&amp;type=atom" />
	<updated>2018-08-20T00:31:53Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=875</id>
		<entry>
			<title type="html"><![CDATA[Re: Verify that the object is out of scope]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3793#p3793" />
			<content type="html"><![CDATA[<p>Thank you so much!</p>]]></content>
			<author>
				<name><![CDATA[NovaEiz]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=756</uri>
			</author>
			<updated>2018-08-20T00:31:53Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3793#p3793</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Verify that the object is out of scope]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3791#p3791" />
			<content type="html"><![CDATA[<p>Convert the geographic coordinate to a screen position, and compare with the screen size.<br />OnlineMapsControlBase.GetScreenPosition<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsControlBase.html#ae62dc7dc9d365e0fab178fb35214c35b">http://infinity-code.com/doxygen/online … b35214c35b</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-08-19T21:37:26Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3791#p3791</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Verify that the object is out of scope]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3790#p3790" />
			<content type="html"><![CDATA[<p>Now I used it. Thanks again for the help)<br />But it&#039;s not quite that. Do you have methods to get the camera corners that look at the map? After all, the map of the visibility boundary is wider than that of the camera. I would like to use the visibility of the camera.</p><p>Can you help? Thanks for any help)</p>]]></content>
			<author>
				<name><![CDATA[NovaEiz]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=756</uri>
			</author>
			<updated>2018-08-19T21:30:37Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3790#p3790</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Verify that the object is out of scope]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3787#p3787" />
			<content type="html"><![CDATA[<p>Thx!)</p>]]></content>
			<author>
				<name><![CDATA[NovaEiz]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=756</uri>
			</author>
			<updated>2018-08-17T18:13:18Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3787#p3787</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Verify that the object is out of scope]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3785#p3785" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Get the coordinates of the corners of the map and compare it with your coordinate.<br /></p><div class="codebox"><pre><code>public static bool InMapView(double lng, double lat)
{
    double tlx, tly, brx, bry;
    OnlineMaps.instance.GetCorners(out tlx, out tly, out brx, out bry);

    if (lat &gt; tly || lat &lt; bry) return false;
    if (tlx &lt; brx &amp;&amp; (lng &lt; tlx || lng &gt; brx)) return false;
    if (tlx &gt; brx &amp;&amp; lng &lt; tlx &amp;&amp; lng &gt; brx) return false;

    return true;
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-08-16T10:39:53Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3785#p3785</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Verify that the object is out of scope]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3784#p3784" />
			<content type="html"><![CDATA[<p>Hello! Tell me how to check that the object is beyond the scope of the map camera? Using geographic coordinates for this purpose</p>]]></content>
			<author>
				<name><![CDATA[NovaEiz]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=756</uri>
			</author>
			<updated>2018-08-15T18:14:38Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3784#p3784</id>
		</entry>
</feed>
