# \[?\] Use RegionMember properly?

**URL:** <https://community.wolfram.com/t/use-regionmember-properly/10177>\
**Category:** Questions\
**Tags:** geometry, graphics-and-visualization, interface-construction\
**Created:** [March 18, 2017, 7:47pm UTC](https://community.wolfram.com/t/use-regionmember-properly/10177 "2017-03-18T19:47:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilicza](https://avatars.discourse-cdn.com/v4/letter/g/87869e/32.png) [@gilicza](https://community.wolfram.com/u/gilicza)\
**Post date:** [March 18, 2017, 7:47pm UTC](https://community.wolfram.com/t/use-regionmember-properly/10177/1 "2017-03-18T19:47:05Z")

</div>

Dear Community,

I tried to explore the RegionMember function to my previous post ( constrained locator ). This function should give True, it a point is inside a region, and False otherwise. Applying it to my polygon it gives True, although the investigated point is clearly outside the region :-/ Does anybody has an explanation?

Tx in advance,  
Andras

---

<div class="post-metadata">

**Author:** ![sghuisman](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/sghuisman/32/27850_2.png) [@sghuisman](https://community.wolfram.com/u/sghuisman)\
**Post date:** [March 18, 2017, 8:58pm UTC](https://community.wolfram.com/t/use-regionmember-properly/10177/2 "2017-03-18T20:58:08Z")

</div>

The cause is the large differences in order of magnitudes in both directions, you can solve this:

```
pts = {
                 
                 { 0. ,0. }, (* P1 *)
                 { 0. ,4.55*^6 }, (* P2 *)
                 { 0.073 ,4.55*^6 }, (* P3 *)
                 { 0.2 ,1.2661197*^7}, (* P4 *)
                 { 0.65 ,1.87575*^7 }, (* P5 *)
                 { 1. ,1.87575*^7 }, (* P6 *)
                 { 1. ,0. } (* P7 *)

               };
pts = SetPrecision[pts,20];

```

btw, there is no need to define e.g. pts, poly etcetera using :=, = is ok.

---

<div class="post-metadata">

**Author:** ![gilicza](https://avatars.discourse-cdn.com/v4/letter/g/87869e/32.png) [@gilicza](https://community.wolfram.com/u/gilicza)\
**Post date:** [March 18, 2017, 9:34pm UTC](https://community.wolfram.com/t/use-regionmember-properly/10177/3 "2017-03-18T21:34:04Z")

</div>

Dear Sander, thank you very much 🙂
