Thanks David, The first time I must have read it without paying the
required attention.
 Do you know any trick or maybe a resource to another algorithm because I
want to detect even if the point is exactly on the boundary.

Thanks.
Mat�as Rodriguez.

> From http://java.sun.com/j2se/1.4/docs/api/java/awt/Shape.html
>
>   Definition of insideness: A point is considered to lie inside a Shape if
>   and only if:
>
>      + it lies completely inside theShape boundary or
>      + it lies exactly on the Shape boundary and the space immediately
>        adjacent to the point in the increasing X direction is entirely
>        inside the boundary or
>      + it lies exactly on a horizontal boundary segment and the space
>        immediately adjacent to the point in the increasing Y direction
>        is inside the boundary.
>
> All three cases fail for (1,1).
>
> -David
>
> ------------------------+--------------------------+
> David Eisner            | E-mail: [EMAIL PROTECTED]   |
> CALCE EPSC              | Phone:  301-405-5341     |
> University of Maryland  | Fax:    301-314-9269     |
> ------------------------+--------------------------+
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to