Getting random points in polygon
#1

Is there a way to get a random point in a polygon?
Reply
#2

Yes.
Reply
#3

Quote:
Originally Posted by OneDay
Посмотреть сообщение
Yes.
That's it ?
Reply
#4

There is this function
PHP код:
GetRandomPointInPolygon(Float:points[],&Float:tx,&Float:ty,maxpoints=sizeof(points)); 
from the 3DTryng include by AbyssMorgan, an amazing include with different functions, very usefull!
Reply
#5

Quote:
Originally Posted by Bolex_
Посмотреть сообщение
That's it ?
"is it possible" is a yes/no question. "how" is more.
Reply
#6

Quote:
Originally Posted by Eoussama
Посмотреть сообщение
There is this function
PHP код:
GetRandomPointInPolygon(Float:points[],&Float:tx,&Float:ty,maxpoints=sizeof(points)); 
from the 3DTryng include by AbyssMorgan, an amazing include with different functions, very usefull!
Thanks bro, I'm using it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)