Raised This Month: $32 Target: $400
 8% 

Need mathematician


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dr. Api
BANNED
Join Date: Mar 2015
Location: France
Old 11-22-2015 , 09:23   Need mathematician
Reply With Quote #1

Hi, I need to know if someone is inside a zone with multiple points.
The zone can be square, triangle, hexagon, parallelepiped, etc...

this can help: https://www.youtube.com/watch?v=QUba...O1GSMt&index=1

Hope Miu can help

Last edited by Dr. Api; 11-22-2015 at 09:24.
Dr. Api is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 11-22-2015 , 10:15   Re: Need mathematician
Reply With Quote #2

In case it has to be convex hull, google it. Otherwise it's a bit more difficult but it can be solved by summarizing angles corner1-point-corner2 + corner2-point-corner3 + ... (and substracting if the angle is negative) I am gonna put that on picture later.





Fig 1: add angles ETA, ATB, BTC, CTD and DTE -> 52.63 + 47.69 + 54.64 + 108.19 + 96.84 = 360 -> T is in ABCDE

Fig 2: Add angles JKF, FKG, GKH, HKI, IKJ -> 152.39 + 50.45 + 93.63 - 50.82 + 114.35 = 360 -> its ok

Fig 3: Add angles PQL, LQM, MQN, NQO, OQP -> 77.16 + 49.02 + 80.57 - 95.05 + 111.7 = 223.4 -> NOT 360 -> point is not in PLMNO
Attached Thumbnails
Click image for larger version

Name:	export.png
Views:	465
Size:	41.3 KB
ID:	149941   Click image for larger version

Name:	export2.png
Views:	512
Size:	42.1 KB
ID:	149942  
__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.

Last edited by KissLick; 11-22-2015 at 10:51.
KissLick is offline
Dr. Api
BANNED
Join Date: Mar 2015
Location: France
Old 11-22-2015 , 10:45   Re: Need mathematician
Reply With Quote #3

Hum, It will be in 3D with min height.
Dr. Api is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 11-22-2015 , 11:11   Re: Need mathematician
Reply With Quote #4

o.o are they all just 2d polygons with height, like this, or can you make like, octahedrons and stuff?
Miu is offline
Dr. Api
BANNED
Join Date: Mar 2015
Location: France
Old 11-22-2015 , 11:20   Re: Need mathematician
Reply With Quote #5

Quote:
Originally Posted by Miu View Post
o.o are they all just 2d polygons with height, like this, or can you make like, octahedrons and stuff?
yes this is how it will looks. I will make a video 5min
Dr. Api is offline
Dr. Api
BANNED
Join Date: Mar 2015
Location: France
Old 11-22-2015 , 11:23   Re: Need mathematician
Reply With Quote #6

Here video: https://youtu.be/EcM1bzqE0jU
Dr. Api is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 11-22-2015 , 11:29   Re: Need mathematician
Reply With Quote #7

If it's just like this, you can "ignore" the height and solve it as 2D problem, then check the Z axis for height.
__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.
KissLick is offline
Dr. Api
BANNED
Join Date: Mar 2015
Location: France
Old 11-22-2015 , 11:37   Re: Need mathematician
Reply With Quote #8

Quote:
Originally Posted by KissLick View Post
If it's just like this, you can "ignore" the height and solve it as 2D problem, then check the Z axis for height.
Not so easy, https://youtu.be/f-b_KriEAjs
Dr. Api is offline
Dr. Api
BANNED
Join Date: Mar 2015
Location: France
Old 11-23-2015 , 06:37   Re: Need mathematician
Reply With Quote #9

Ok, I past my entire day to understand and make some test without success
Dr. Api is offline
Starbish
AlliedModders Donor
Join Date: Oct 2011
Location: South Korea
Old 11-29-2015 , 09:50   Re: Need mathematician
Reply With Quote #10

Well... it can be done by dividing poligon plate into triangle or square (maybe triangle is better though)

then you can get whether someone is inside of the triangles or squares.
__________________
Starbish is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode