to check if a point is in a region or outside :


- take a point that is outside your region (a very far one for
exemple) , let's call it pointA

- check if the line from your point to pointA cross each line of your region.

if the number a line crossed is odd, your point is out of the region,
if it's even , your point is in the region.













On 3/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I have a big (for me) problem,
>
> i have a grpah made of a series of point (of one pixel).
> I need taht the user can draw a series of line on this graph to make a
> shape or region.
> This is the first problem: how to permit to the user to draw...
>
> The second is this one :
>
> there is a way to check if a point is inside the refion or outside?
>
>
> Thanks,Riccardo
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to