The rectangle is not parallel to the axes, instead its rotating all the
time.


I don't believe that using the bounds of a clip will account for any
rotations.-Scott

-Scott

On 12/21/06, Janis Radins <[EMAIL PROTECTED]> wrote:

Check whteher your point is iniside boundries by something like this:
if(point.x > rect.minX && point.x < rect.maxX && point.y > rect.minY &&
point.Y < rect.maxY)

guess something like that should work.

2006/12/21, Oliver Müller <[EMAIL PROTECTED]>:
>
> Hi all,
>
> I'm looking for a mathematic way to check if a point resides within a
> rectangle.
> The rectangle is not parallel to the axes, instead its rotating all the
> time.
> It's not a movieclip so hitTest is out of the question.
> Any suggestions how I could solve this problem ?
>
> cheers,
> olli
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> 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
>
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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




--

: : ) Scott
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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